On Thu, 19 Aug 1999, liwei wrote:

>     Who can tell me where is the kernel function 'idle()' in Linux 2.2.x ?
> Thanks a lot.

That's worse - hang on!

You are seeing idle() in init/main.c. This is actually a kernel call
defined as a macro in include/linux/unistd.h -> include/asm/unistd.h.

The call emerges in kernel space in (assuming i386 arch)
arch/i386/kernel/entry.S and is mapped to the name 'sys_idle' defined in
arch/i386/kernel/process.c.
This function calls 'cpu_idle' also defined in arch/i386/kernel/process.c.

The non SMP 'cpu_idle' is static so it should not be confused with the
other 'cpu_idle' function found in init/main.c which is global... Oh! It's
also SMP dependent!

You figure it out - I'm way too tired!

Robin.

--------------------------------------------------------------------------
 Robin G. Theander            E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]
 Bagsvaerd Hovedgade 99, 3A   Phone:  +45 4444 7775 
 DK-2880  Bagsvaerd           Mobil:  +45 4036 4538
 DENMARK                      Ham:    OZ1RGT
--------------------------------------------------------------------------
I would have sent this mail yesterday but I was fresh out of stamps

--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.

Reply via email to