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

From: William Lee Irwin III
Date: Wed Aug 04 2004 - 23:54:21 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/