diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-10-01 04:44:40 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-10-09 03:13:58 -0400 |
commit | a9b1649917f0d2058022eda06082f9d299a06354 (patch) | |
tree | 245fbfb453c5e3626f598d6f37c09a1a74f135b4 /arch/s390 | |
parent | 5db8440c36a3308649b99f65b68195394dd7fed4 (diff) |
s390/vtime: do not reset idle data on CPU hotplug
The sysfs attributes /sys/devices/system/cpu/cpu0/idle_count and
/sys/devices/system/cpu/cpu0/idle_time_us are reset to zero every
time a CPU is set online. The idle and iowait fields in /proc/stat
corresponding to idle_time_us are not reset. To make things
consistent do not reset the data for the sys attributes.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kernel/processor.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/s390/kernel/processor.c b/arch/s390/kernel/processor.c index 24612029f450..32587cc76306 100644 --- a/arch/s390/kernel/processor.c +++ b/arch/s390/kernel/processor.c | |||
@@ -23,7 +23,6 @@ static DEFINE_PER_CPU(struct cpuid, cpu_id); | |||
23 | */ | 23 | */ |
24 | void cpu_init(void) | 24 | void cpu_init(void) |
25 | { | 25 | { |
26 | struct s390_idle_data *idle = &__get_cpu_var(s390_idle); | ||
27 | struct cpuid *id = &__get_cpu_var(cpu_id); | 26 | struct cpuid *id = &__get_cpu_var(cpu_id); |
28 | 27 | ||
29 | get_cpu_id(id); | 28 | get_cpu_id(id); |
@@ -31,7 +30,6 @@ void cpu_init(void) | |||
31 | current->active_mm = &init_mm; | 30 | current->active_mm = &init_mm; |
32 | BUG_ON(current->mm); | 31 | BUG_ON(current->mm); |
33 | enter_lazy_tlb(&init_mm, current); | 32 | enter_lazy_tlb(&init_mm, current); |
34 | memset(idle, 0, sizeof(*idle)); | ||
35 | } | 33 | } |
36 | 34 | ||
37 | /* | 35 | /* |