Hello guys,

In the function smp_local_timer_interrupt() of arch/i386/kernel/smp.c there
is an if(p->pid) check which makes the output of /proc/uptime on an SMP
machine look completely different from that of a UP, in the sense that no
idle time is reported (or reported as 0). I have removed the if(p->pid) and
now I get a "reasonable" /proc/uptime output. However, no doubt the "if" in
there serves some purpose - so the question is - what is the purpose and
can we remove it?

Btw, the kernel compile takes the same 1m45s with or without the if() so
I am not worrying about performance - just the /proc/uptime
compatibility...

Thanks in advance,
------ -------- --------- -------- --  - -- ---- --
Tigran A. Aivazian           | http://www.sco.com
Escalations Research Group   | tel: +44-(0)1923-813796
Santa Cruz Operation Ltd     | Email: [EMAIL PROTECTED]

Reply via email to