Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1280944
| From | "Suzuki K. Poulose" <suzuki.poulose@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 4/6] arm64: Add hook for checking early CPU features |
| Date | 2015-12-01 16:20 +0100 |
| Message-ID | <qAUSJ-2T0-5@gated-at.bofh.it> (permalink) |
| References | <qAUSJ-2T0-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Adds a hook for checking whether a secondary CPU has the
features used already by the kernel during early boot, based
on the boot CPU.
Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Suzuki K. Poulose <suzuki.poulose@arm.com>
---
arch/arm64/kernel/cpufeature.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index dde1f56..8dd05283 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -824,6 +824,14 @@ static u64 __raw_read_system_reg(u32 sys_id)
}
/*
+ * Check for CPU features that are used in early boot
+ * based on the Boot CPU value.
+ */
+static void check_early_cpu_features(void)
+{
+}
+
+/*
* Run through the enabled system capabilities and enable() it on this CPU.
* The capabilities were decided based on the available CPUs at the boot time.
* Any new CPU should match the system wide status of the capability. If the
@@ -836,6 +844,8 @@ void verify_local_cpu_capabilities(void)
int i;
const struct arm64_cpu_capabilities *caps;
+ check_early_cpu_features();
+
/*
* If we haven't computed the system capabilities, there is nothing
* to verify.
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/6] arm64: cpufeature: Add sanity check for ASIDBits "Suzuki K. Poulose" <suzuki.poulose@arm.com> - 2015-12-01 16:20 +0100
[PATCH v2 4/6] arm64: Add hook for checking early CPU features "Suzuki K. Poulose" <suzuki.poulose@arm.com> - 2015-12-01 16:20 +0100
[PATCH v2 1/6] arm64: Introduce kill_cpu_early "Suzuki K. Poulose" <suzuki.poulose@arm.com> - 2015-12-01 16:20 +0100
[PATCH v2 2/6] arm64: Move kill_cpu_early to smp.c "Suzuki K. Poulose" <suzuki.poulose@arm.com> - 2015-12-01 16:20 +0100
Re: [PATCH v2 2/6] arm64: Move kill_cpu_early to smp.c Mark Rutland <mark.rutland@arm.com> - 2015-12-01 16:30 +0100
Re: [PATCH v2 2/6] arm64: Move kill_cpu_early to smp.c "Suzuki K. Poulose" <Suzuki.Poulose@arm.com> - 2015-12-01 17:10 +0100
Re: [PATCH v2 2/6] arm64: Move kill_cpu_early to smp.c Mark Rutland <mark.rutland@arm.com> - 2015-12-01 17:40 +0100
Re: [PATCH v2 2/6] arm64: Move kill_cpu_early to smp.c "Suzuki K. Poulose" <Suzuki.Poulose@arm.com> - 2015-12-01 18:40 +0100
Re: [PATCH v2 2/6] arm64: Move kill_cpu_early to smp.c Mark Rutland <mark.rutland@arm.com> - 2015-12-01 19:00 +0100
Re: [PATCH v2 2/6] arm64: Move kill_cpu_early to smp.c "Suzuki K. Poulose" <Suzuki.Poulose@arm.com> - 2015-12-01 19:20 +0100
Re: [PATCH v2 2/6] arm64: Move kill_cpu_early to smp.c Mark Rutland <mark.rutland@arm.com> - 2015-12-01 20:00 +0100
Re: [PATCH v2 2/6] arm64: Move kill_cpu_early to smp.c "Suzuki K. Poulose" <Suzuki.Poulose@arm.com> - 2015-12-03 17:40 +0100
Re: [PATCH v2 2/6] arm64: Move kill_cpu_early to smp.c Mark Rutland <mark.rutland@arm.com> - 2015-12-03 18:10 +0100
[PATCH v2 6/6] arm64: Ensure the secondary CPUs have safe ASIDBits size "Suzuki K. Poulose" <suzuki.poulose@arm.com> - 2015-12-01 16:20 +0100
[PATCH v2 5/6] arm64: Add helper for extracting ASIDBits "Suzuki K. Poulose" <suzuki.poulose@arm.com> - 2015-12-01 16:20 +0100
csiph-web