Skip to content

Commit

Permalink
s390/cpu init: use __get_cpu_var instead of per_cpu
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Jul 17, 2012
1 parent 711d273 commit 50bb1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/kernel/processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 50bb1f7

Please sign in to comment.