]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Catch usage of cpu/mmu_has_feature() before jump label init
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sat, 23 Jul 2016 09:12:43 +0000 (14:42 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 1 Aug 2016 01:15:06 +0000 (11:15 +1000)
commit0996f7582443788a6ce1bf12dfcb6e2990493830
tree9df953d954d85946488f41cbd202865535805eb4
parent26067bdfddd87c456c39a172c76c0a1effc45d01
powerpc/mm: Catch usage of cpu/mmu_has_feature() before jump label init

This allows us to catch incorrect usage of cpu_has_feature() and
mmu_has_feature() prior to jump labels being initialised.

mpe: Use printk() and dump_stack() rather than WARN_ON(), because
WARN_ON() may not work this early in boot. Rename the Kconfig.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Kconfig.debug
arch/powerpc/include/asm/cpu_has_feature.h
arch/powerpc/include/asm/mmu.h