Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131263
b: refs/heads/master
c: 483b4ee
h: refs/heads/master
i:
  131261: ca39296
  131259: 2e347ba
  131255: 8ed5181
  131247: 8e4e67d
  131231: 58abfd5
  131199: 1ad79ab
v: v3
  • Loading branch information
Suresh Siddha authored and Ingo Molnar committed Feb 4, 2009
1 parent a045ebd commit 2ba13b7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 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: a6a95406c676ffe4f9dee708eb404a17c69f7fdd
refs/heads/master: 483b4ee60edbefdfbff0dd538fb81f368d9e7c0d
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/hpet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ static void hpet_rtc_timer_reinit(void)
hpet_t1_cmp += delta;
hpet_writel(hpet_t1_cmp, HPET_T1_CMP);
lost_ints++;
} while ((s32)(hpet_readl(HPET_COUNTER) - hpet_t1_cmp) > 0);
} while ((long)(hpet_readl(HPET_COUNTER) - hpet_t1_cmp) > 0);

if (lost_ints) {
if (hpet_rtc_flags & RTC_PIE)
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ struct pacct_struct {
* @utime: time spent in user mode, in &cputime_t units
* @stime: time spent in kernel mode, in &cputime_t units
* @sum_exec_runtime: total time spent on the CPU, in nanoseconds
* @lock: lock for fields in this struct
*
* This structure groups together three kinds of CPU time that are
* tracked for threads and thread groups. Most things considering
Expand Down
17 changes: 11 additions & 6 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3890,19 +3890,24 @@ int select_nohz_load_balancer(int stop_tick)
int cpu = smp_processor_id();

if (stop_tick) {
cpumask_set_cpu(cpu, nohz.cpu_mask);
cpu_rq(cpu)->in_nohz_recently = 1;

/*
* If we are going offline and still the leader, give up!
*/
if (!cpu_active(cpu) &&
atomic_read(&nohz.load_balancer) == cpu) {
if (!cpu_active(cpu)) {
if (atomic_read(&nohz.load_balancer) != cpu)
return 0;

/*
* If we are going offline and still the leader,
* give up!
*/
if (atomic_cmpxchg(&nohz.load_balancer, cpu, -1) != cpu)
BUG();

return 0;
}

cpumask_set_cpu(cpu, nohz.cpu_mask);

/* time for ilb owner also to sleep */
if (cpumask_weight(nohz.cpu_mask) == num_online_cpus()) {
if (atomic_read(&nohz.load_balancer) == cpu)
Expand Down

0 comments on commit 2ba13b7

Please sign in to comment.