hi gavinm, I've looked at the opensolaris code and I found the functions you mentioned. For i86p, in the mp_machdep.c file idle_cpu is either defined as cpu_idle (that in turn calls mach_cpu_idle and finally executes i86_halt) or cpu_idle_mwait which uses the mwait approach.
Since I'm interested in using the sparc architecture I also found idle_cpu being assigned to cpu_halt function within os/mach_startup.c (sun4u) file. This function calls cpu_halt_cpu which is supposed to halt the cpu if the global flag enable_halt_idle_cpus is enabled. However, I also saw that idle_cpu is defined as generic_idle_cpu in the common/disp/disp.c file which is actually empty. Since, So in conclusion, I'm confused about which definition of idle_cpu will actually be used when I'm compiling my code on a sparc machine. Will idle_cpu be an empty function or something that actually halts? Is there a way to verify this? Regards, Mladen This message posted from opensolaris.org _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code