* - kernel-time-clocksourcec-needs-struct-task_struct-on-m68k.patch removed from -mm tree
@ 2007-02-11 22:47 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2007-02-11 22:47 UTC (permalink / raw)
To: mathieu.desnoyers, mingo, stable, tglx, zippel, mm-commits
The patch titled
kernel/time/clocksource.c needs struct task_struct on m68k
has been removed from the -mm tree. Its filename was
kernel-time-clocksourcec-needs-struct-task_struct-on-m68k.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
Subject: kernel/time/clocksource.c needs struct task_struct on m68k
From: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
kernel/time/clocksource.c needs struct task_struct on m68k.
Because it uses spin_unlock_irq(), which, on m68k, uses hardirq_count(), which
uses preempt_count(), which needs to dereference struct task_struct, we
have to include sched.h. Because it would cause a loop inclusion, we
cannot include sched.h in any other of asm-m68k/system.h,
linux/thread_info.h, linux/hardirq.h, which leaves this ugly include in
a C file as the only simple solution.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
kernel/time/clocksource.c | 1 +
1 file changed, 1 insertion(+)
diff -puN kernel/time/clocksource.c~kernel-time-clocksourcec-needs-struct-task_struct-on-m68k kernel/time/clocksource.c
--- a/kernel/time/clocksource.c~kernel-time-clocksourcec-needs-struct-task_struct-on-m68k
+++ a/kernel/time/clocksource.c
@@ -28,6 +28,7 @@
#include <linux/sysdev.h>
#include <linux/init.h>
#include <linux/module.h>
+#include <linux/sched.h> /* for spin_unlock_irq() using preempt_count() m68k */
/* XXX - Would like a better way for initializing curr_clocksource */
extern struct clocksource clocksource_jiffies;
_
Patches currently in -mm which might be from mathieu.desnoyers@polymtl.ca are
origin.patch
git-mips.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-11 22:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-11 22:47 - kernel-time-clocksourcec-needs-struct-task_struct-on-m68k.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.