diff options
author | Kevin Corry <kevcorry@us.ibm.com> | 2007-12-11 07:49:17 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2007-12-18 19:00:01 -0500 |
commit | 29641ce165e5f643b48988cb779c6ba97b647503 (patch) | |
tree | 1212a500fed327bfaf81237e6a451838ddd57aee | |
parent | 7ee17466b6ac3b63ce87492d080e15e7f144f7d2 (diff) |
[POWERPC] perfmon2: make pm_interval register read/write
The pm_interval register in the Cell PMU is read/write, but was implemented in
the kernel as write-only. Previously, the written value was saved in a "shadow"
copy so calls to cbe_read_pm() could return the value.
Perfmon2 needs to be able to read the current values of pm_interval, so change
cbe_read_pm() to read the actual register instead of the "shadow" copy. There
is currently no code in the kernel that tries to read the pm_interval register
with cbe_read_pm() (expecting to receive the "shadow" value), so this should
not break any existing code.
Signed-off-by: Kevin Corry <kevcorry@us.ibm.com>
Signed-off-by: Carl Love <carll@us.ibm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/powerpc/platforms/cell/pmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/pmu.c b/arch/powerpc/platforms/cell/pmu.c index 1ed303678887..99d688e88cbe 100644 --- a/arch/powerpc/platforms/cell/pmu.c +++ b/arch/powerpc/platforms/cell/pmu.c | |||
@@ -213,7 +213,7 @@ u32 cbe_read_pm(u32 cpu, enum pm_reg_name reg) | |||
213 | break; | 213 | break; |
214 | 214 | ||
215 | case pm_interval: | 215 | case pm_interval: |
216 | READ_SHADOW_REG(val, pm_interval); | 216 | READ_MMIO_UPPER32(val, pm_interval); |
217 | break; | 217 | break; |
218 | 218 | ||
219 | case pm_start_stop: | 219 | case pm_start_stop: |