Skip to content
Commit bab4c8de authored by Michael Ellerman's avatar Michael Ellerman
Browse files

powerpc/mm: Define radix_enabled() in one place & use static inline



Currently we have radix_enabled() three times, twice in asm/book3s/64/mmu.h
and then a fallback in asm/mmu.h.

Consolidate them in asm/mmu.h. While we're at it convert them to be
static inlines, and change the fallback case to returning a bool, like
mmu_has_feature().

Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 6574ba95
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment