login
Header Space

 
 

Re: tick-common.c hack for s390 needed

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: Christoph Hellwig <hch@...>, Thomas Gleixner <tglx@...>, <linux-kernel@...>, Martin Schwidefsky <schwidefsky@...>
Date: Friday, March 21, 2008 - 9:25 am

On Fri, Mar 21, 2008 at 11:15:04AM +0100, Ingo Molnar wrote:

No, tick-common.c has calls to irq_set_affinity and irq_can_set_affinity, for
which the prototypes are in linux/irq.h.
Each and every architecture seems to include linux/irq.h from a different file
in asm-[your-favourite-arch]/*.h. I was able to fix the build breakage on x86
by adding an include <linux/interrupt.h>. But that won't work on other
architectures.
From a logical point of view I would expect that asm/irq.h is supposed to
include linux/irq.h, no?

The patch below removes at least three of the includes for a beginning.
Still compiles on s390 and x86_64.

Subject: [PATCH] time: remove include/irq.h.

From: Heiko Carstens <heiko.carstens@de.ibm.com>

Generic code is not supposed to include linux/irq.h.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
---

 kernel/hrtimer.c             |    1 -
 kernel/time/tick-broadcast.c |    1 -
 kernel/time/tick-oneshot.c   |    1 -
 3 files changed, 3 deletions(-)

Index: linux-2.6/kernel/hrtimer.c
===================================================================
--- linux-2.6.orig/kernel/hrtimer.c
+++ linux-2.6/kernel/hrtimer.c
@@ -32,7 +32,6 @@
  */
 
 #include <linux/cpu.h>
-#include <linux/irq.h>
 #include <linux/module.h>
 #include <linux/percpu.h>
 #include <linux/hrtimer.h>
Index: linux-2.6/kernel/time/tick-broadcast.c
===================================================================
--- linux-2.6.orig/kernel/time/tick-broadcast.c
+++ linux-2.6/kernel/time/tick-broadcast.c
@@ -14,7 +14,6 @@
 #include <linux/cpu.h>
 #include <linux/err.h>
 #include <linux/hrtimer.h>
-#include <linux/irq.h>
 #include <linux/percpu.h>
 #include <linux/profile.h>
 #include <linux/sched.h>
Index: linux-2.6/kernel/time/tick-oneshot.c
===================================================================
--- linux-2.6.orig/kernel/time/tick-oneshot.c
+++ linux-2.6/kernel/time/tick-oneshot.c
@@ -14,7 +14,6 @@
 #include <linux/cpu.h>
 #include <linux/err.h>
 #include <linux/hrtimer.h>
-#include <linux/irq.h>
 #include <linux/percpu.h>
 #include <linux/profile.h>
 #include <linux/sched.h>
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
tick-common.c hack for s390 needed, Heiko Carstens, (Tue Mar 18, 5:31 am)
Re: tick-common.c hack for s390 needed, Arnd Bergmann, (Wed Mar 19, 12:12 am)
Re: tick-common.c hack for s390 needed, Christoph Hellwig, (Wed Mar 19, 1:45 am)
Re: tick-common.c hack for s390 needed, Ingo Molnar, (Fri Mar 21, 6:15 am)
Re: tick-common.c hack for s390 needed, Heiko Carstens, (Fri Mar 21, 9:25 am)
Re: tick-common.c hack for s390 needed, Thomas Gleixner, (Fri Mar 21, 10:45 am)
Re: tick-common.c hack for s390 needed, Heiko Carstens, (Sat Mar 22, 4:32 pm)
Re: tick-common.c hack for s390 needed, Russell King, (Sun Mar 23, 6:34 pm)
Re: tick-common.c hack for s390 needed, Thomas Gleixner, (Tue Mar 25, 3:09 pm)
Re: tick-common.c hack for s390 needed, Heiko Carstens, (Tue Apr 1, 7:02 am)
Re: tick-common.c hack for s390 needed, Thomas Gleixner, (Tue Apr 1, 7:24 am)
Re: tick-common.c hack for s390 needed, Russell King, (Tue Mar 25, 3:30 pm)
Re: tick-common.c hack for s390 needed, Heiko Carstens, (Mon Mar 24, 6:14 am)
speck-geostationary