forked from Minki/linux
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
@ -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 New Issue
Block a user