login
Login
/
Register
Search
Header Space
Forums
News
Jobs
Blogs
Features
Man Pages
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
11
Re: [PATCH][try 2] architectural pstate driver for powernow-k8
view
thread
Score:
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Andy Whitcroft <apw@...>
To: Mark Langsdorf <mark.langsdorf@...>
Cc: Andi Kleen <andi@...>, <cpufreq@...>, <linux-kernel@...>
Subject:
Re: [PATCH][try 2] architectural pstate driver for powernow-k8
Date: Thursday, October 11, 2007 - 3:59 am
On Tue, Oct 09, 2007 at 03:43:20PM -0500, Mark Langsdorf wrote:
quoted text
> On Tuesday 09 October 2007 15:06, Andi Kleen wrote: > > "Mark Langsdorf" <mark.langsdorf@amd.com> writes: > > > > > This patch should apply cleanly to the 2.6.22.6 kernel. > > > > Isn't that a little old? The earliest this could be merged > > is the upcomming 2.6.24 tree. Best you submit it against .23 > > or better -mm. > > Good point. > > This patch should apply cleanly to the 2.6.23-rc8-mm2 kernel. It changes > the powernow-k8 driver code that deals with 3rd generation Opteron, Phenom, > and later processors to match the architectual pstate driver described > in the AMD64 Architecture Programmer's Manual Volume 2 Chapter 18. The > initial implementation of the hardware pstate driver for PowerNow! > used some processor-version specific features, and would not be > maintainable in the long term as the processor features changed. > This architectural driver should work on all future AMD processors. > > -Mark Langsdorf > Operating System Resarch Center > AMD > > Signed-off-by <mark.langsdorf@amd.com> > Acked-by <andreas.herrmann3@amd.com>
[...]
quoted text
> /* get fid did for hardware pstate transition */ > pstate = index & HW_PSTATE_MASK; > - if (pstate > MAX_HW_PSTATE) > + if (pstate > data->max_hw_pstate); > return 0;
checkpatch picked up this dodgy if. I suspect that the ';' is wrong from the context.
quoted text
> - fid = (index & HW_FID_INDEX_MASK) >> HW_FID_INDEX_SHIFT; > - did = (index & HW_DID_INDEX_MASK) >> HW_DID_INDEX_SHIFT; > - freqs.old = find_khz_freq_from_fiddid(data->currfid, data->currdid); > - freqs.new = find_khz_freq_from_fiddid(fid, did); > + freqs.old = find_khz_freq_from_pstate(data->powernow_table, data->currpstate); > + freqs.new = find_khz_freq_from_pstate(data->powernow_table, pstate);
-apw -
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:
[PATCH] architectural pstate driver for powernow-k8
, Mark Langsdorf
, (Tue Oct 9, 3:46 pm)
Re: [PATCH] architectural pstate driver for powernow-k8
, Andi Kleen
, (Tue Oct 9, 4:06 pm)
[PATCH][try 2] architectural pstate driver for powernow-k8
, Mark Langsdorf
, (Tue Oct 9, 4:43 pm)
Re: [PATCH][try 2] architectural pstate driver for powernow-k8
, Andy Whitcroft
, (Thu Oct 11, 3:59 am)
Re: [PATCH][try 2] architectural pstate driver for powernow-k8
, Dave Jones
, (Mon Oct 15, 11:40 am)
[PATCH][try 3] architectural pstate driver for powernow-k8
, Mark Langsdorf
, (Mon Oct 15, 12:23 pm)
Re: [PATCH][try 4] architectural pstate driver for powernow-k8
, Mark Langsdorf
, (Mon Oct 15, 5:03 pm)
Re: [PATCH][try 4] architectural pstate driver for powernow-k8
, Dave Jones
, (Wed Oct 17, 5:33 pm)
Re: [PATCH][try 3] architectural pstate driver for powernow-k8
, Dave Jones
, (Mon Oct 15, 4:32 pm)
Re: [PATCH][try 2] architectural pstate driver for powernow-k8
, Dave Jones
, (Tue Oct 9, 7:41 pm)
Re: [PATCH][try 2] architectural pstate driver for powernow-k8
, Andreas Herrmann3
, (Wed Oct 10, 12:35 pm)
RE: [PATCH][try 2] architectural pstate driver for powernow-k8
, Langsdorf, Mark
, (Wed Oct 10, 1:06 pm)
Navigation
Create content
Mailing list archives
Recent posts
Mail archive search
Enter your search terms.
all mailing lists
alsa-devel
dragonflybsd-bugs
dragonflybsd-commit
dragonflybsd-docs
dragonflybsd-kernel
dragonflybsd-submit
dragonflybsd-user
freebsd-announce
freebsd-bugs
freebsd-chat
freebsd-cluster
freebsd-current
freebsd-drivers
freebsd-embeded
freebsd-fs
freebsd-hackers
freebsd-hardware
freebsd-mobile
freebsd-net
freebsd-performance
freebsd-pf
freebsd-security
freebsd-security-notifications
freebsd-threads
git
git-commits-head
linux-activists
linux-arm
linux-ath5k-devel
linux-btrfs
linux-c-programming
linux-driver-devel
linux-ext4
linux-fsdevel
linux-ia64
linux-input
linux-kernel
linux-kernel-janitors
linux-kernel-mentors
linux-kernel-newbies
linux-kvm
linux-net
linux-netdev
linux-newbie
linux-nfs
linux-raid
linux-scsi
linux-security-module
linux-sparse
linux-usb
linux-usb-devel
madwifi-devel
netbsd-announce
netbsd-tech-kern
openbsd-announce
openbsd-bugs
openbsd-ipv6
openbsd-misc
openbsd-security-announce
openbsd-smp
openbsd-source-changes
openbsd-tech
openfabrics-general
openmoko-community
openmoko-devel
openmoko-kernel
reiserfs-devel
tux3
ucarp
Optionally limit your search to a specific mailing list.
advanced
Popular discussions
linux-kernel
:
Alan Cox
[PATCH 01/76] drivers/serial/crisv10.c: add missing put_tty_driver
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Adrian Bunk
Re: Linux 2.6.21
David Miller
Slow DOWN, please!!!
git
:
Jon Smirl
Re: VCS comparison table
Junio C Hamano
[RFD] On deprecating "git-foo" for builtins
Eric Wong
[PATCH] archimport improvements
Johannes Schindelin
Re: [FAQ?] Rationale for git's way to manage the index
openbsd-misc
:
Richard Stallman
Real men don't attack straw men
GVG GVG
ssh_exchange_identification: Connection closed by remote host
Leon Dippenaar
New tcp stack attack
Henning Brauer
Re: About Xen: maybe a reiterative question but ..
linux-netdev
:
David Miller
[GIT]: Networking
Mark Lord
Re: 2.6.25-rc8: FTP transfer errors
Alexey Dobriyan
[PATCH 01/33] nf_conntrack_sip: de-static helper pointers
Evgeniy Polyakov
Re: [BUG] New Kernel Bugs
Latest forum posts
high memory
1 day ago
Linux kernel
semaphore access speed
1 day ago
Applications and Utilities
the kernel how to power off the machine
1 day ago
Linux kernel
Easter Eggs in windows XP
1 day ago
Windows
Shared swap partition
1 day ago
Linux general
Root password
1 day ago
Linux general
Where/when DNOTIFY is used?
1 day ago
Linux kernel
How to convert Linux Kernel built-in module into a loadable module
2 days ago
Linux kernel
Linux 2.6.24 and I/O schedulers
2 days ago
Linux kernel
USB Driver -- Interrupt Polling -- A Little Help Please
2 days ago
Linux general
Show all forums...
Recent Tags
2.6.27-rc8
quote
Linux
-rc8
bugs
Linus Torvalds
-rc
Intel
2.6.27
more tags
Colocation donated by:
Who's online
There are currently
2 users
and
754 guests
online.
Online users
sci3ntist
strcmp
Syndicate
speck-geostationary