]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
commitc812c7d8f1470ac9c8aa6d7e29b56e5845ee05fc
tree9df953d954d85946488f41cbd202865535805eb4
parentc12e6f24d4137822d5019c1f78ac65bd27a3447d
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