login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
March
»
31
Re: [-v2 PATCH 2/6] powernow-k8: Add core performance boost support
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrew Morton
Subject:
Re: [-v2 PATCH 2/6] powernow-k8: Add core performance boost support
Date: Tuesday, March 30, 2010 - 8:22 pm
On Wed, 31 Mar 2010 08:13:43 +0200 Borislav Petkov <bp@amd64.org> wrote:
quoted text
> > > +static void _cpb_toggle_msrs(bool t) > > > +{ > > > + int cpu; > > > + > > > + rdmsr_on_cpus(cpu_online_mask, MSR_K7_HWCR, msrs); > > > + > > > + for_each_cpu(cpu, cpu_online_mask) { > > > + struct msr *reg = per_cpu_ptr(msrs, cpu); > > > + if (t) > > > + reg->l &= ~BIT(25); > > > + else > > > + reg->l |= BIT(25); > > > + } > > > + wrmsr_on_cpus(cpu_online_mask, MSR_K7_HWCR, msrs); > > > +} > > > > What prevents cpu_online_mask from changing while this is happening? > > Frankly, nothing.
Sneak a get_online_cpus()/put_online_cpus() in there?
quoted text
> And yes, we talked a lot about this internally, since, > you need this bit cleared on _all_ cores for the processor to boost. > Now, if you've offlined some of the cores, you won't be able to execute > any code on them and thus clear this bit. > > However, this interface is there only for benchmarking purposes and > stuff, i.e. normally, you shouldn't need to touch it _at_ _all_ and > boosting will work out of the box and without user interaction. > > So, IMHO, hotplug notifiers won't work since you need all cores online > at that particular moment to enable boosting. It sounds more reasonable > to me to WARN when a core is missing from the mask that boosting cannot > be enabled. I'll cook up something later today.
--
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[-v2 PATCH 2/6] powernow-k8: Add core performance boost su ...
, Borislav Petkov
, (Fri Mar 26, 6:39 am)
Re: [-v2 PATCH 2/6] powernow-k8: Add core performance boos ...
, Andrew Morton
, (Tue Mar 30, 3:42 pm)
Re: [-v2 PATCH 2/6] powernow-k8: Add core performance boos ...
, Andrew Morton
, (Tue Mar 30, 8:22 pm)
Re: [-v2 PATCH 2/6] powernow-k8: Add core performance boos ...
, Andrew Morton
, (Tue Mar 30, 8:38 pm)
Re: [-v2 PATCH 2/6] powernow-k8: Add core performance boos ...
, Borislav Petkov
, (Tue Mar 30, 11:13 pm)
Re: [-v2 PATCH 2/6] powernow-k8: Add core performance boos ...
, Borislav Petkov
, (Tue Mar 30, 11:35 pm)
Re: [-v2 PATCH 2/6] powernow-k8: Add core performance boos ...
, H. Peter Anvin
, (Tue Mar 30, 11:42 pm)
Re: [-v2 PATCH 2/6] powernow-k8: Add core performance boos ...
, Borislav Petkov
, (Wed Mar 31, 8:08 am)
Re: [-v2 PATCH 2/6] powernow-k8: Add core performance boos ...
, Dave Jones
, (Wed Mar 31, 8:16 am)
Re: [-v2 PATCH 2/6] powernow-k8: Add core performance boos ...
, Borislav Petkov
, (Thu Apr 8, 2:48 am)
Re: [-v2 PATCH 2/6] powernow-k8: Add core performance boos ...
, H. Peter Anvin
, (Fri Apr 9, 1:57 pm)
Re: [-v2 PATCH 2/6] powernow-k8: Add core performance boos ...
, H. Peter Anvin
, (Fri Apr 9, 1:59 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [PATCH 0/3] v2 Make hierarchical RCU less IPI-happy and add more tracing
Jeremy Fitzhardinge
Re: Linux 2.6.28.10 and Linux 2.6.29.6 XEN Guest Support Broken x86_64 in BUILD
Nick Piggin
Re: [patch] CFS (Completely Fair Scheduler), v2
Gary Hade
Re: [PATCH 0/5][RFC] Physical PCI slot objects
Dave Johnson
Re: expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?
linux-netdev
:
Arnd Bergmann
Re: 64-bit net_device_stats
Stephens, Allan
RE: [PATCH]: tipc: Fix oops on send prior to entering networked mode
frank.blaschka
[patch 3/5] [PATCH] qeth: support z/VM VSWITCH Port Isolation
Wu Fengguang
Re: [PATCH] dm9601: handle corrupt mac address
David Miller
Re: [PATCH net-2.6.24] Fix refcounting problem with netif_rx_reschedule()
git
:
Junio C Hamano
Re: [PATCH] [RFC] add Message-ID field to log on git-am operation
Junio C Hamano
Re: Handling large files with GIT
Karl
Re: [ANNOUNCE] pg - A patch porcelain for GIT
Josh Triplett
Re: [RFC][PATCH 00/10] Sparse: Git's "make check" target
Pierre Habouzit
Re: [PATCH] git-daemon: more powerful base-path/user-path settings, using formats.
git-commits-head
:
Linux Kernel Mailing List
MIPS: RBTX4939: Fix IOC pin-enable register updating
Linux Kernel Mailing List
regulator: update email address for Liam Girdwood
Linux Kernel Mailing List
[SCSI] ipr: add message to error table
Linux Kernel Mailing List
powerpc/32: Wire up the trampoline code for kdump
Linux Kernel Mailing List
USB: omap_udc: sync with OMAP tree
openbsd-misc
:
Josh Grosse
Re: error : pkg add phpMyAdmin
Brian Candler
Re: OBSD's perspective on SELinux
Jacob Meuser
Re: /dev/audio: Device busy
David Vasek
Re: Inexpensive, low power, "wall wart" computer
William Boshuck
Re: Richard Stallman...
Colocation donated by:
Syndicate