Re: To make a function get executed on cpu2

Zwane Mwaikambo (zwane@arm.linux.org.uk)
Wed, 2 Jul 2003 08:29:36 -0400 (EDT)


On Wed, 2 Jul 2003, Dave Jones wrote:

> See do_cpuid in arch/i386/kernel/cpuid.c for an example of how to do this
> properly. It's a bit icky, but works. I've considered writing a generic
> run_on_cpu() when I did the on_each_cpu() stuff, but asides from
> cpuid.c, msr.c was the only other case I could find from a quick
> grep around that really cared, so it didn't seem worth the effort.

I wrote come code which required such and ended up doing something
similar. I also reckoned the actual function was generic enough i can't
possibly be the only person needing such.

Zwane

-- 
function.linuxpower.ca
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/