mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-20 23:38:21 +07:00
e66c3209c7
This patch moves the files related to page table dump in a dedicated subdirectory. The purpose is to clean a bit arch/powerpc/mm by regrouping multiple files handling a dedicated function. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> [mpe: Shorten the file names while we're at it] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
20 lines
300 B
C
20 lines
300 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#include <linux/types.h>
|
|
|
|
struct flag_info {
|
|
u64 mask;
|
|
u64 val;
|
|
const char *set;
|
|
const char *clear;
|
|
bool is_val;
|
|
int shift;
|
|
};
|
|
|
|
struct pgtable_level {
|
|
const struct flag_info *flag;
|
|
size_t num;
|
|
u64 mask;
|
|
};
|
|
|
|
extern struct pgtable_level pg_level[5];
|