Re: To make a function get executed on cpu2

From: Herbert Xu (
Date: Wed Jul 02 2003 - 05:03:24 EST

Zwane Mwaikambo <> wrote:
> 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

Surely you can emulate it using smp_call_function and make it return
straight away if it runs on the wrong CPU.

Debian GNU/Linux 3.0 is out! ( )
Email:  Herbert Xu ~{PmV>HI~} <>
Home Page:
PGP Key:
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:15 EST