mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
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
This commit is contained in:
parent
fec40fe7e6
commit
b80691e25e
|
|
@ -2434,6 +2434,8 @@ DEFINE_DEBUGFS_ATTRIBUTE(fops_hpt_order, hpt_order_get, hpt_order_set, "%llu\n")
|
|||
|
||||
static int __init hash64_debugfs(void)
|
||||
{
|
||||
if (radix_enabled())
|
||||
return 0;
|
||||
debugfs_create_file("hpt_order", 0600, arch_debugfs_dir, NULL,
|
||||
&fops_hpt_order);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user