Skip to content

Commit a3ab02b

Browse files
committed
Merge tag 'pm-3.9-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management fixes from Rafael Wysocki: - System reboot/halt fix related to CPU offline ordering from Huacai Chen. - intel_pstate driver fix for a delay time computation error occasionally crashing systems using it from Dirk Brandewie. * tag 'pm-3.9-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: PM / reboot: call syscore_shutdown() after disable_nonboot_cpus() cpufreq / intel_pstate: Set timer timeout correctly
2 parents 89a132a + 6f389a8 commit a3ab02b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/cpufreq/intel_pstate.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,6 @@ static inline void intel_pstate_set_sample_time(struct cpudata *cpu)
502502

503503
sample_time = cpu->pstate_policy->sample_rate_ms;
504504
delay = msecs_to_jiffies(sample_time);
505-
delay -= jiffies % delay;
506505
mod_timer_pinned(&cpu->timer, jiffies + delay);
507506
}
508507

‎kernel/sys.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ void kernel_restart_prepare(char *cmd)
324324
system_state = SYSTEM_RESTART;
325325
usermodehelper_disable();
326326
device_shutdown();
327-
syscore_shutdown();
328327
}
329328

330329
/**
@@ -370,6 +369,7 @@ void kernel_restart(char *cmd)
370369
{
371370
kernel_restart_prepare(cmd);
372371
disable_nonboot_cpus();
372+
syscore_shutdown();
373373
if (!cmd)
374374
printk(KERN_EMERG "Restarting system.\n");
375375
else
@@ -395,6 +395,7 @@ static void kernel_shutdown_prepare(enum system_states state)
395395
void kernel_halt(void)
396396
{
397397
kernel_shutdown_prepare(SYSTEM_HALT);
398+
disable_nonboot_cpus();
398399
syscore_shutdown();
399400
printk(KERN_EMERG "System halted.\n");
400401
kmsg_dump(KMSG_DUMP_HALT);

0 commit comments

Comments
 (0)