From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH] use per-cpu variables in cpufreq Date: Fri, 27 May 2011 14:11:51 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Juergen Gross , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 27/05/2011 12:11, "Juergen Gross" wrote: > The cpufreq driver used some local arrays indexed by cpu number. This patch > replaces those arrays by per-cpu variables. The AMD and INTEL specific parts > used different per-cpu data structures with nearly identical semantics. > Fold the two structures into one by adding a generic architecture data item. Xen's per-cpu data gets freed across cpu offline/online, whereas cpu-indexed arrays of course do not. Will the cpufreq state be correctly handled across offline/online if we switch to per-cpu vars? -- Keir > Signed-off-by: juergen.gross@ts.fujitsu.com > > > 8 files changed, 58 insertions(+), 66 deletions(-) > xen/arch/x86/acpi/cpufreq/cpufreq.c | 36 ++++++++++++------------ > xen/arch/x86/acpi/cpufreq/powernow.c | 43 +++++++++++------------------ > xen/drivers/acpi/pmstat.c | 6 ++-- > xen/drivers/cpufreq/cpufreq.c | 24 ++++++++-------- > xen/drivers/cpufreq/cpufreq_ondemand.c | 2 - > xen/drivers/cpufreq/utility.c | 8 ++--- > xen/include/acpi/cpufreq/cpufreq.h | 3 +- > xen/include/acpi/cpufreq/processor_perf.h | 2 - > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel