How does cpu_idle() work?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



冰河hi all,

I am wondering how the cpu_idle works. Conceptually I know it is a endless
loop to check whether the current task is needed to be scheduled, but

my questions are:
1, how does need_resched() work? I dont understand how the test_bit() called
inside is doing
2, how does default_idle work? what does it do? what does halt mean?
3, if once the cpu goes into idle with the while(1)-loop, will it be very
busy (100% cpu utility) with looping around ??

thx for helping....

P.F. Tsai







--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux