From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:58774 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751267AbdJDJsb (ORCPT ); Wed, 4 Oct 2017 05:48:31 -0400 From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, matwey.kornilov@gmail.com, Suzuki K Poulose , James Morse , Dave Martin , Catalin Marinas , Will Deacon , stable@vger.kernel.org, Mark Rutland Subject: [PATCH] arm64: Enable MRS emulation early Date: Wed, 4 Oct 2017 10:48:05 +0100 Message-Id: <20171004094805.24009-1-suzuki.poulose@arm.com> Sender: stable-owner@vger.kernel.org List-ID: Make sure the MRS emulation is enabled early enough, such that the early userspace applications (e.g, those run from initrd) could use the facility without crashing them. Fixes: commit 77c97b4ee2129 ("arm64: cpufeature: Expose CPUID registers by emulation") Reported-by: Matwey V. Kornilov Cc: James Morse Cc: Dave Martin Cc: Catalin Marinas Cc: Will Deacon Cc: stable@vger.kernel.org Cc: Mark Rutland Signed-off-by: Suzuki K Poulose --- arch/arm64/kernel/cpufeature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 9f9e0064c8c1..276eecab6cea 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -1294,4 +1294,4 @@ static int __init enable_mrs_emulation(void) return 0; } -late_initcall(enable_mrs_emulation); +core_initcall(enable_mrs_emulation); -- 2.13.5