Skip to contentSkip to conversation

Convert Alpha to the new 2.5 IRQ API

PATCH New Marc Zyngier 1 participant 1 message Apr 21, 2003 Alpha port

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Convert Alpha to the new 2.5 IRQ API

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 [email protected] 1.1122
# Convert Alpha to the new IRQ API.
# --------------------------------------------
#

arch/alpha/kernel/irq.c +5 -2
diff -Nru a/arch/alpha/kernel/irq.c b/arch/alpha/kernel/irq.c
@@ -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;
arch/alpha/kernel/proto.h +2 -1
diff -Nru a/arch/alpha/kernel/proto.h b/arch/alpha/kernel/proto.h
@@ -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;
 
arch/alpha/kernel/time.c +2 -1
diff -Nru a/arch/alpha/kernel/time.c b/arch/alpha/kernel/time.c
@@ -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
Signature · 1 line
Places change, faces change. Life is so very strange.