aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r--arch/s390/kernel/processor.c2
-rw-r--r--arch/s390/kernel/smp.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/arch/s390/kernel/processor.c b/arch/s390/kernel/processor.c
index 6e0073e43f54..07c7bf47d618 100644
--- a/arch/s390/kernel/processor.c
+++ b/arch/s390/kernel/processor.c
@@ -26,12 +26,14 @@ static DEFINE_PER_CPU(struct cpuid, cpu_id);
26void __cpuinit cpu_init(void) 26void __cpuinit cpu_init(void)
27{ 27{
28 struct cpuid *id = &per_cpu(cpu_id, smp_processor_id()); 28 struct cpuid *id = &per_cpu(cpu_id, smp_processor_id());
29 struct s390_idle_data *idle = &__get_cpu_var(s390_idle);
29 30
30 get_cpu_id(id); 31 get_cpu_id(id);
31 atomic_inc(&init_mm.mm_count); 32 atomic_inc(&init_mm.mm_count);
32 current->active_mm = &init_mm; 33 current->active_mm = &init_mm;
33 BUG_ON(current->mm); 34 BUG_ON(current->mm);
34 enter_lazy_tlb(&init_mm, current); 35 enter_lazy_tlb(&init_mm, current);
36 memset(idle, 0, sizeof(*idle));
35} 37}
36 38
37/* 39/*
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c
index dc602a61233f..22257f241d07 100644
--- a/arch/s390/kernel/smp.c
+++ b/arch/s390/kernel/smp.c
@@ -959,14 +959,11 @@ static int __cpuinit smp_cpu_notify(struct notifier_block *self,
959 unsigned int cpu = (unsigned int)(long)hcpu; 959 unsigned int cpu = (unsigned int)(long)hcpu;
960 struct cpu *c = &pcpu_devices[cpu].cpu; 960 struct cpu *c = &pcpu_devices[cpu].cpu;
961 struct device *s = &c->dev; 961 struct device *s = &c->dev;
962 struct s390_idle_data *idle;
963 int err = 0; 962 int err = 0;
964 963
965 switch (action) { 964 switch (action) {
966 case CPU_ONLINE: 965 case CPU_ONLINE:
967 case CPU_ONLINE_FROZEN: 966 case CPU_ONLINE_FROZEN:
968 idle = &per_cpu(s390_idle, cpu);
969 memset(idle, 0, sizeof(struct s390_idle_data));
970 err = sysfs_create_group(&s->kobj, &cpu_online_attr_group); 967 err = sysfs_create_group(&s->kobj, &cpu_online_attr_group);
971 break; 968 break;
972 case CPU_DEAD: 969 case CPU_DEAD: