Re: To make a function get executed on cpu2

From: Zwane Mwaikambo (
Date: Tue Jul 01 2003 - 11:33:49 EST

On Mon, 30 Jun 2003, Raghava Raju wrote:

> In multicpu systems in kernel version 2.4.19, how
> can we specify that a function be executed on
> a cpu of our choice(say cpu_2). Moreover if I call a
> function from cpu_1 to be executed on cpu_2, I dont
> want to wait in cpu_1 until complete execution of
> function on cpu_2 . Is it possible?????
> Any example would be really helpful. Please
> mail back to

You can't really do it portably across all architectures, Alpha has
smp_call_function_on_cpu which would allow you to do this. If you're
really desperate you could always do something like the following;

Good luck,

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jul 07 2003 - 22:00:13 EST