/kernel/trunk/generic/src/proc/scheduler.c |
---|
131,10 → 131,14 |
* For there was nothing to run, the CPU goes to sleep |
* until a hardware interrupt or an IPI comes. |
* This improves energy saving and hyperthreading. |
* |
* - we might get an interrupt here that makes some thread runnable, |
* in such a case we must wait for the next quantum to come |
*/ |
/* |
* An interrupt might occur right now and wake up a thread. |
* In such case, the CPU will continue to go to sleep |
* even though there is a runnable thread. |
*/ |
cpu_sleep(); |
goto loop; |
} |
/kernel/trunk/generic/src/mm/slab.c |
---|
27,7 → 27,7 |
*/ |
/* |
* The SLAB allocator is closely modelled after Opensolaris SLAB allocator |
* The SLAB allocator is closely modelled after OpenSolaris SLAB allocator |
* http://www.usenix.org/events/usenix01/full_papers/bonwick/bonwick_html/ |
* |
* with the following exceptions: |