diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2019-02-18 12:28:36 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-02-22 22:29:22 +1100 |
commit | e66c3209c7fd17209ccc4cbbee8b1b1bd5c438dd (patch) | |
tree | 31d1f0b7e4409fa66015ebfa520e4730337405e8 /arch/powerpc/mm/ptdump/ptdump.h | |
parent | cabe8138b23c92e851b92c6a20ffb13598ff34d4 (diff) |
powerpc: Move page table dump files in a dedicated subdirectory
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>
Diffstat (limited to 'arch/powerpc/mm/ptdump/ptdump.h')
-rw-r--r-- | arch/powerpc/mm/ptdump/ptdump.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/powerpc/mm/ptdump/ptdump.h b/arch/powerpc/mm/ptdump/ptdump.h new file mode 100644 index 000000000000..5d513636de73 --- /dev/null +++ b/arch/powerpc/mm/ptdump/ptdump.h @@ -0,0 +1,19 @@ +/* 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]; |