[PATCH] PPC64 collect and export low-level cpu usage statistics

linas linas at austin.ibm.com
Fri Jan 27 07:28:15 EST 2006


Hi,

Below is a dumb question. Maybe the answer is easy, but I figured 
it would be easier to ask them than to try to figure out the answer.

On Thu, Jan 19, 2006 at 10:38:44AM -0600, Manish Ahuja was heard to remark:
> Index: linux-2.6.15-rc6/arch/powerpc/kernel/process.c
> +
> +		lpaca = get_paca();
> +		pd->collected_krntb = lpaca->delta_tb;
> +		pd->collected_timebase = mftb();

What prevents us from accidentally gietting migrated to a different cpu
during this process? In particular, I notice you are running this with
interrupts enabled.

--linas



More information about the Linuxppc64-dev mailing list