Commit 55f8b5b8 authored by Michael Ellerman's avatar Michael Ellerman

powerpc/mm: Simplify page size kconfig dependencies

For config options with only a single value, guarding the single value
with 'if' is the same as adding a 'depends' statement. And it's more
standard to just use 'depends'.

And if the option has both an 'if' guard and a 'depends' we can collapse
them into a single 'depends' by combining them with &&.
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Reviewed-by: default avatarAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
parent 95300577
...@@ -565,16 +565,17 @@ config PPC_4K_PAGES ...@@ -565,16 +565,17 @@ config PPC_4K_PAGES
bool "4k page size" bool "4k page size"
config PPC_16K_PAGES config PPC_16K_PAGES
bool "16k page size" if 44x || PPC_8xx bool "16k page size"
depends on 44x || PPC_8xx
config PPC_64K_PAGES config PPC_64K_PAGES
bool "64k page size" if 44x || PPC_STD_MMU_64 || PPC_BOOK3E_64 bool "64k page size"
depends on !PPC_FSL_BOOK3E depends on !PPC_FSL_BOOK3E && (44x || PPC_STD_MMU_64 || PPC_BOOK3E_64)
select PPC_HAS_HASH_64K if PPC_STD_MMU_64 select PPC_HAS_HASH_64K if PPC_STD_MMU_64
config PPC_256K_PAGES config PPC_256K_PAGES
bool "256k page size" if 44x bool "256k page size"
depends on !STDBINUTILS depends on 44x && !STDBINUTILS
help help
Make the page size 256k. Make the page size 256k.
......
Markdown is supported
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