diff options
-rw-r--r-- | arch/powerpc/kernel/time.c | 2 | ||||
-rw-r--r-- | include/asm-powerpc/time.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index c85d9b0d9042..b5944d8e3802 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c | |||
@@ -866,7 +866,7 @@ void __init generic_calibrate_decr(void) | |||
866 | "(not found)\n"); | 866 | "(not found)\n"); |
867 | } | 867 | } |
868 | 868 | ||
869 | #ifdef CONFIG_BOOKE | 869 | #if defined(CONFIG_BOOKE) || defined(CONFIG_40x) |
870 | /* Set the time base to zero */ | 870 | /* Set the time base to zero */ |
871 | mtspr(SPRN_TBWL, 0); | 871 | mtspr(SPRN_TBWL, 0); |
872 | mtspr(SPRN_TBWU, 0); | 872 | mtspr(SPRN_TBWU, 0); |
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 |