From: Suzuki K. Poulose Date: Wed, 21 Jan 2015 12:43:10 +0000 (+0000) Subject: arm64: Consolidate hotplug notifier for instruction emulation X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~117^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=736d474f0fafd1486f178570bc47660ee9dfdef8;p=pandora-kernel.git 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 Signed-off-by: Suzuki K. Poulose Cc: Will Deacon Cc: Punit Agrawal [catalin.marinas@arm.com: fix pr_warn compilation error] [catalin.marinas@arm.com: remove unnecessary "insn" check] Signed-off-by: Catalin Marinas --- Reading git-diff-tree failed