Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64982
b: refs/heads/master
c: 07eec6a
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Thomas Gleixner committed Sep 16, 2007
1 parent ed183f7 commit 172399d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 729c6ba334771f28a54efd7e3b8f5ab9414ce7bc
refs/heads/master: 07eec6af448d13a6a520d9c6f06f2e87f61b567a
13 changes: 12 additions & 1 deletion trunk/kernel/time/tick-broadcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,12 +382,23 @@ static int tick_broadcast_set_event(ktime_t expires, int force)

int tick_resume_broadcast_oneshot(struct clock_event_device *bc)
{
int cpu = smp_processor_id();

/*
* If the CPU is marked for broadcast, enforce oneshot
* broadcast mode. The jinxed VAIO does not resume otherwise.
* No idea why it ends up in a lower C State during resume
* without notifying the clock events layer.
*/
if (cpu_isset(cpu, tick_broadcast_mask))
cpu_set(cpu, tick_broadcast_oneshot_mask);

clockevents_set_mode(bc, CLOCK_EVT_MODE_ONESHOT);

if(!cpus_empty(tick_broadcast_oneshot_mask))
tick_broadcast_set_event(ktime_get(), 1);

return cpu_isset(smp_processor_id(), tick_broadcast_oneshot_mask);
return cpu_isset(cpu, tick_broadcast_oneshot_mask);
}

/*
Expand Down

0 comments on commit 172399d

Please sign in to comment.