Re: [PATCH] arm64: Fix incorrect per-cpu usage for boot CPU

2016-07-21 Thread Catalin Marinas
On Thu, Jul 21, 2016 at 11:12:55AM +0100, Suzuki K. Poulose wrote: > In smp_prepare_boot_cpu(), we invoke cpuinfo_store_boot_cpu to store > the cpuinfo in a per-cpu ptr, before initialising the per-cpu offset for > the boot CPU. This patch reorders the sequence to make sure we initialise > the

Re: [PATCH] arm64: Fix incorrect per-cpu usage for boot CPU

2016-07-21 Thread Catalin Marinas
On Thu, Jul 21, 2016 at 11:12:55AM +0100, Suzuki K. Poulose wrote: > In smp_prepare_boot_cpu(), we invoke cpuinfo_store_boot_cpu to store > the cpuinfo in a per-cpu ptr, before initialising the per-cpu offset for > the boot CPU. This patch reorders the sequence to make sure we initialise > the

Re: [PATCH] arm64: Fix incorrect per-cpu usage for boot CPU

2016-07-21 Thread Mark Rutland
On Thu, Jul 21, 2016 at 11:12:55AM +0100, Suzuki K Poulose wrote: > In smp_prepare_boot_cpu(), we invoke cpuinfo_store_boot_cpu to store > the cpuinfo in a per-cpu ptr, before initialising the per-cpu offset for > the boot CPU. This patch reorders the sequence to make sure we initialise > the

Re: [PATCH] arm64: Fix incorrect per-cpu usage for boot CPU

2016-07-21 Thread Mark Rutland
On Thu, Jul 21, 2016 at 11:12:55AM +0100, Suzuki K Poulose wrote: > In smp_prepare_boot_cpu(), we invoke cpuinfo_store_boot_cpu to store > the cpuinfo in a per-cpu ptr, before initialising the per-cpu offset for > the boot CPU. This patch reorders the sequence to make sure we initialise > the

[PATCH] arm64: Fix incorrect per-cpu usage for boot CPU

2016-07-21 Thread Suzuki K Poulose
In smp_prepare_boot_cpu(), we invoke cpuinfo_store_boot_cpu to store the cpuinfo in a per-cpu ptr, before initialising the per-cpu offset for the boot CPU. This patch reorders the sequence to make sure we initialise the per-cpu offset before accessing the per-cpu area. Commit 4b998ff1885eec

[PATCH] arm64: Fix incorrect per-cpu usage for boot CPU

2016-07-21 Thread Suzuki K Poulose
In smp_prepare_boot_cpu(), we invoke cpuinfo_store_boot_cpu to store the cpuinfo in a per-cpu ptr, before initialising the per-cpu offset for the boot CPU. This patch reorders the sequence to make sure we initialise the per-cpu offset before accessing the per-cpu area. Commit 4b998ff1885eec