Re: kernel/sched.c questions

Richard B. Johnson (root@chaos.analogic.com)
Wed, 4 Apr 2001 17:22:20 -0400 (EDT)


On Wed, 4 Apr 2001, Tim Walberg wrote:

> On 04/04/2001 16:52 -0300, Sardaņons, Eliel wrote:
> >> Hello, I would like to know why you put this two functions:
> >> void scheduling_functions_start_here(void) { }
> >> ...
> >> void scheduling_functions_end_here(void) { }
> >>
>

This is so 'ps' knows if somebody is sleeping in the scheduler,
which is most often the case unless you have 2 or more CPUs.
When these addresses are found, the observed stack is unwound
to find the return address, hense where the sleeping task
was really sleeping.

Cheers,
Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).

"Memory is like gasoline. You use it up when you are running. Of
course you get it all back when you reboot..."; Actual explanation
obtained from the Micro$oft help desk.

-
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/