ia64/xen-unstable
annotate patches/linux-2.6.12/rcu-nohz.patch @ 6879:97dbd9524a7e
Patches and recipe to build an elilo.efi that will boot domain0 with initrd
and pre-built "xlilo.efi". Courtesy of Anthony Xu and Fred Yang.
and pre-built "xlilo.efi". Courtesy of Anthony Xu and Fred Yang.
author | djm@kirby.fc.hp.com |
---|---|
date | Thu Sep 22 11:34:14 2005 -0600 (2005-09-22) |
parents | 9af349b055e5 |
children | 3233e7ecfa9f 06d84bf87159 |
rev | line source |
---|---|
kaf24@5201 | 1 diff -ur linux-2.6.11/kernel/rcupdate.c linux-2.6.11-rcu/kernel/rcupdate.c |
kaf24@5201 | 2 --- linux-2.6.11/kernel/rcupdate.c 2005-05-30 10:51:41 +01:00 |
kaf24@5201 | 3 +++ linux-2.6.11-rcu/kernel/rcupdate.c 2005-05-30 10:53:53 +01:00 |
kaf24@5201 | 4 @@ -202,8 +202,11 @@ |
kaf24@5201 | 5 */ |
kaf24@5201 | 6 static void cpu_quiet(int cpu, struct rcu_ctrlblk *rcp, struct rcu_state *rsp) |
kaf24@5201 | 7 { |
kaf24@5201 | 8 + cpumask_t mask; |
kaf24@5201 | 9 + |
kaf24@5201 | 10 cpu_clear(cpu, rsp->cpumask); |
kaf24@5201 | 11 - if (cpus_empty(rsp->cpumask)) { |
kaf24@5201 | 12 + cpus_andnot(mask, rsp->cpumask, nohz_cpu_mask); |
kaf24@5201 | 13 + if (cpus_empty(mask)) { |
kaf24@5201 | 14 /* batch completed ! */ |
kaf24@5201 | 15 rcp->completed = rcp->cur; |
kaf24@5201 | 16 rcu_start_batch(rcp, rsp, 0); |