]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
kernel/time/clocksource.c needs struct task_struct on m68k
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sat, 10 Feb 2007 09:43:43 +0000 (01:43 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Mar 2007 18:50:30 +0000 (10:50 -0800)
commit5556eaffcc2704d9dca81c80cf3e7cbcc869f680
treea653a3a62ce4fd9ab59913a4118e530094d6488a
parentcffb0fa41969e3d8a10f0645cfd439572e224609
kernel/time/clocksource.c needs struct task_struct on m68k

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/time/clocksource.c