mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
s390/cpu init: use __get_cpu_var instead of per_cpu
Just saves a couple of instructions. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
711d2731d0
commit
50bb1f761e
1 changed files with 1 additions and 1 deletions
|
@ -25,8 +25,8 @@ static DEFINE_PER_CPU(struct cpuid, cpu_id);
|
|||
*/
|
||||
void __cpuinit cpu_init(void)
|
||||
{
|
||||
struct cpuid *id = &per_cpu(cpu_id, smp_processor_id());
|
||||
struct s390_idle_data *idle = &__get_cpu_var(s390_idle);
|
||||
struct cpuid *id = &__get_cpu_var(cpu_id);
|
||||
|
||||
get_cpu_id(id);
|
||||
atomic_inc(&init_mm.mm_count);
|
||||
|
|
Loading…
Reference in a new issue