aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/softirq.c
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-31 12:03:42 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-31 12:03:42 +0100
commit68b564efee06fa8a5118004d8d78b2c0a20b5096 (patch)
tree668a1983115f773b2c6de942d01611de80a3a208 /xen/common/softirq.c
parent5a5d245c8c59a28503353f57d7b2201b507bf99e (diff)
downloadxen-68b564efee06fa8a5118004d8d78b2c0a20b5096.tar.gz
xen-68b564efee06fa8a5118004d8d78b2c0a20b5096.tar.bz2
xen-68b564efee06fa8a5118004d8d78b2c0a20b5096.zip
Various softirq cleanups:
1. Make __softirq_pending a long, since PPC borrows the file hardirq.h from us and they only do atomic ops on longs. 2. do_softirq() explicitly takes a void param list. 3. Remove idle_timestamp field from irq_cpustat. It's unused and lets us simplify the idle loop a little bit. Part 1 based on a patch from Hollis Blanchard at IBM. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/common/softirq.c')
-rw-r--r--xen/common/softirq.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xen/common/softirq.c b/xen/common/softirq.c
index 5a7cd2dabc..f8a2c3780c 100644
--- a/xen/common/softirq.c
+++ b/xen/common/softirq.c
@@ -21,9 +21,10 @@ irq_cpustat_t irq_stat[NR_CPUS];
static softirq_handler softirq_handlers[NR_SOFTIRQS];
-asmlinkage void do_softirq()
+asmlinkage void do_softirq(void)
{
- unsigned int i, pending, cpu = smp_processor_id();
+ unsigned int i, cpu = smp_processor_id();
+ unsigned long pending;
pending = softirq_pending(cpu);
ASSERT(pending != 0);