diff options
author | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2007-08-20 08:29:11 -0400 |
---|---|---|
committer | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2007-08-20 08:29:11 -0400 |
commit | aab69292e4efd38181cd300d9b83b12592643d6c (patch) | |
tree | 089d2344e9fd767a01ca375eb5c9049c8a0fac9b /include/asm-powerpc/time.h | |
parent | 4d922c8dc332f4c7bc156fa832187661d4899cee (diff) |
[POWERPC] 40x decrementer fixes
Allow generic_calibrate_decr to work for 40x platforms. Given that the hardware
behavior is identical, this also changes the set_dec function to reload the PIT
on 40x to match the behavior 44x currently has.
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Diffstat (limited to 'include/asm-powerpc/time.h')
-rw-r--r-- | include/asm-powerpc/time.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-powerpc/time.h b/include/asm-powerpc/time.h index d7f5ddfbaac7..fdc271ebe41c 100644 --- a/include/asm-powerpc/time.h +++ b/include/asm-powerpc/time.h | |||
@@ -174,7 +174,7 @@ static inline unsigned int get_dec(void) | |||
174 | static inline void set_dec(int val) | 174 | static inline void set_dec(int val) |
175 | { | 175 | { |
176 | #if defined(CONFIG_40x) | 176 | #if defined(CONFIG_40x) |
177 | return; /* Have to let it auto-reload */ | 177 | mtspr(SPRN_PIT, val); |
178 | #elif defined(CONFIG_8xx_CPU6) | 178 | #elif defined(CONFIG_8xx_CPU6) |
179 | set_dec_cpu6(val); | 179 | set_dec_cpu6(val); |
180 | #else | 180 | #else |