Bug 10968
Summary: | p4-clockmod reports false frequency | ||
---|---|---|---|
Product: | Power Management | Reporter: | Matthias-Christian Ott (ott) |
Component: | cpufreq | Assignee: | cpufreq (cpufreq) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | bunk, lenb, nm127 |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.25.7 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Attachments: | calculates frequency based on tsc value |
Description
Matthias-Christian Ott
2008-06-23 10:11:14 UTC
The bug was introduced in commit ed9cbcd40004904dbe61ccc16d6106a7de38c998. As proposed in bug #7186 the fix seems to be wrong, but worked for most people. According to the Intel specification there is no such multiplier field in the msr, so the frequency has to be measured by the tsc on Pentium 4 Model 0 and 1. Does anyone disagree? Created attachment 16881 [details]
calculates frequency based on tsc value
The attached patch should fix the issue forever more, because it conforms now entirely to the specification.
patch looks good. Matthias-Christian, can you submit it with proper signed-off-by-line to davej, and davej can you pick it up with my Acked-by-line, please? Thanks! Patch submitted. *** Bug 11623 has been marked as a duplicate of this bug. *** closed by: commit 199785eac892a1fa1b71cc22bec58e8b156d9311 Author: Matthias-Christian Ott <ott@mirix.org> Date: Fri Feb 20 20:52:17 2009 -0500 [CPUFREQ] p4-clockmod reports wrong frequency. http://bugzilla.kernel.org/show_bug.cgi?id=10968 [ Updated for current tree, and fixed compile failure when p4-clockmod was built modular -- davej] From: Matthias-Christian Ott <ott@mirix.org> Signed-off-by: Dominik Brodowski <linux@brodo.de> Signed-off-by: Dave Jones <davej@redhat.com> |