* [PATCH] Convert Alpha to the new 2.5 IRQ API
@ 2003-04-21 15:08 Marc Zyngier
0 siblings, 0 replies; only message in thread
From: Marc Zyngier @ 2003-04-21 15:08 UTC (permalink / raw)
To: Richard Henderson; +Cc: linux-kernel, torvalds
Richard, Linus,
This patch converts the Alpha architecture to the new 2.5 IRQ API.
Tested on Jensen.
Thanks,
M.
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1121 -> 1.1122
# arch/alpha/kernel/proto.h 1.14 -> 1.15
# arch/alpha/kernel/time.c 1.16 -> 1.17
# arch/alpha/kernel/irq.c 1.19 -> 1.20
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/04/21 maz@hina.wild-wind.fr.eu.org 1.1122
# Convert Alpha to the new IRQ API.
# --------------------------------------------
#
diff -Nru a/arch/alpha/kernel/irq.c b/arch/alpha/kernel/irq.c
--- a/arch/alpha/kernel/irq.c Mon Apr 21 17:00:46 2003
+++ b/arch/alpha/kernel/irq.c Mon Apr 21 17:00:46 2003
@@ -45,7 +45,10 @@
* Special irq handlers.
*/
-void no_action(int cpl, void *dev_id, struct pt_regs *regs) { }
+irqreturn_t no_action(int cpl, void *dev_id, struct pt_regs *regs)
+{
+ return IRQ_NONE;
+}
/*
* Generic no controller code
@@ -414,7 +417,7 @@
}
int
-request_irq(unsigned int irq, void (*handler)(int, void *, struct pt_regs *),
+request_irq(unsigned int irq, irqreturn_t (*handler)(int, void *, struct pt_regs *),
unsigned long irqflags, const char * devname, void *dev_id)
{
int retval;
diff -Nru a/arch/alpha/kernel/proto.h b/arch/alpha/kernel/proto.h
--- a/arch/alpha/kernel/proto.h Mon Apr 21 17:00:46 2003
+++ b/arch/alpha/kernel/proto.h Mon Apr 21 17:00:46 2003
@@ -1,4 +1,5 @@
#include <linux/config.h>
+#include <linux/interrupt.h>
/* Prototypes of functions used across modules here in this directory. */
@@ -128,7 +129,7 @@
/* extern void reset_for_srm(void); */
/* time.c */
-extern void timer_interrupt(int irq, void *dev, struct pt_regs * regs);
+extern irqreturn_t timer_interrupt(int irq, void *dev, struct pt_regs * regs);
extern void common_init_rtc(void);
extern unsigned long est_cycle_freq;
diff -Nru a/arch/alpha/kernel/time.c b/arch/alpha/kernel/time.c
--- a/arch/alpha/kernel/time.c Mon Apr 21 17:00:46 2003
+++ b/arch/alpha/kernel/time.c Mon Apr 21 17:00:46 2003
@@ -94,7 +94,7 @@
* timer_interrupt() needs to keep up the real-time clock,
* as well as call the "do_timer()" routine every clocktick
*/
-void timer_interrupt(int irq, void *dev, struct pt_regs * regs)
+irqreturn_t timer_interrupt(int irq, void *dev, struct pt_regs * regs)
{
unsigned long delta;
__u32 now;
@@ -139,6 +139,7 @@
}
write_sequnlock(&xtime_lock);
+ return IRQ_HANDLED;
}
void
--
Places change, faces change. Life is so very strange.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-04-21 14:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-21 15:08 [PATCH] Convert Alpha to the new 2.5 IRQ API Marc Zyngier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).