[sparc32] [5/13] reinstate smp_reschedule_irq()

William Lee Irwin III
2004-08-05T04:50:41Z

On Wed, Aug 04, 2004 at 09:44:27PM -0700, William Lee Irwin III wrote:
> The SMP initialization functions try to do btfixups on the wrong
> symbols for smp_processor_id(), which is now implemented in terms
> of current_thread_info()->cpu. hard_smp_processor_id() etc. are now
> in use where smp_processor_id() was once used.

smp_reschedule_irq() mysteriously vanished sometime after 2.4.
This patch reinstates it so that the kernel will link properly
and so cpus will set TIF_NEED_RESCHED when it's asked of them.

Index: mm2-2.6.8-rc2/arch/sparc/kernel/smp.c
===================================================================
--- mm2-2.6.8-rc2.orig/arch/sparc/kernel/smp.c
+++ mm2-2.6.8-rc2/arch/sparc/kernel/smp.c
@@ -203,6 +203,11 @@
}
}

+void smp_reschedule_irq(void)
+{
+ set_need_resched();
+}
+
void smp_flush_page_to_ram(unsigned long page)
{
/* Current theory is that those who call this are the one's