Skip to content

Commit b80691e

Browse files
riteshharjanimaddy-kerneldev
authored andcommitted
powerpc/64s/hash: Hash hpt_order should be only available with Hash MMU
This disables creating hpt_order debugfs entry with radix mode. Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/99237176a51c73e85f4a7edd60a2460017882d69.1761834163.git.ritesh.list@gmail.com
1 parent fec40fe commit b80691e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/powerpc/mm/book3s64/hash_utils.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2434,6 +2434,8 @@ DEFINE_DEBUGFS_ATTRIBUTE(fops_hpt_order, hpt_order_get, hpt_order_set, "%llu\n")
24342434

24352435
static int __init hash64_debugfs(void)
24362436
{
2437+
if (radix_enabled())
2438+
return 0;
24372439
debugfs_create_file("hpt_order", 0600, arch_debugfs_dir, NULL,
24382440
&fops_hpt_order);
24392441
return 0;

0 commit comments

Comments
 (0)