Re: [PATCH] oprofile: Fix the hang while offline the cpu

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robert Richter
Date: Wednesday, October 27, 2010 - 1:06 am

On 23.10.10 08:12:06, Santosh Shilimkar wrote:

Indeed, this is true.

There is also the case vice versa, the cpu is booted with maxcpus
parameter set. When bringing the remaining cpus online the timers are
started even if oprofile is not yet enabled.


Maybe we rename this in ctr_running. This is similar to the arch/x86
implementation. We don't need the oprofile_ prefix as this is static.
'started' is a bit irritating as we start the timer if the timer is
started.


We must protect on_each_cpu() and the variable assignment with
get/put_online_cpus(). See also implementation in
arch/x86/oprofile/nmi_int.c.


Same here, protect this with get/put_online_cpus().

-Robert


-- 
Advanced Micro Devices, Inc.
Operating System Research Center

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] oprofile: Fix the hang while offline the cpu, Santosh Shilimkar, (Sat Oct 23, 5:12 am)
Re: [PATCH] oprofile: Fix the hang while offline the cpu, Robert Richter, (Wed Oct 27, 1:06 am)
RE: [PATCH] oprofile: Fix the hang while offline the cpu, Shilimkar, Santosh, (Wed Oct 27, 1:45 am)