]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Consolidate hotplug notifier for instruction emulation
authorSuzuki K. Poulose <suzuki.poulose@arm.com>
Wed, 21 Jan 2015 12:43:10 +0000 (12:43 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 23 Jan 2015 17:11:30 +0000 (17:11 +0000)
commitc359e8b858d7299bfbfd58c0a45ee69a9823a5ae
tree5d2980222088d482e73ec8047cbca23d7695ec85
parente007a476a692b48dff7c03e5f47fc492232cf857
arm64: Consolidate hotplug notifier for instruction emulation

As of now each insn_emulation has a cpu hotplug notifier that
enables/disables the CPU feature bit for the functionality. This
patch re-arranges the code, such that there is only one notifier
that runs through the list of registered emulation hooks and runs
their corresponding set_hw_mode.

We do nothing when a CPU is dying as we will set the appropriate bits
as it comes back online based on the state of the hooks.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Suzuki K. Poulose <suzuki.poulose@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Punit Agrawal <punit.agrawal@arm.com>
[catalin.marinas@arm.com: fix pr_warn compilation error]
[catalin.marinas@arm.com: remove unnecessary "insn" check]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/cputype.h
arch/arm64/kernel/armv8_deprecated.c