mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
powerpc: Fix some bugs in the new merged time code
I had the sense of the test for when to use the old 601-style RTC registers inverted. pmac_calibrate_decr and via_calibrate_decr weren't setting ppc_tb_freq, on which all the further calculations depended. Lastly, update_gtod was losing the top 32 bits of the new tb_to_xs value. Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
parent
17a6392d30
commit
5d14a18d59
3 changed files with 4 additions and 5 deletions
|
|
@ -75,7 +75,7 @@ struct div_result {
|
|||
/* Accessor functions for the timebase (RTC on 601) registers. */
|
||||
/* If one day CONFIG_POWER is added just define __USE_RTC as 1 */
|
||||
#ifdef CONFIG_6xx
|
||||
#define __USE_RTC() cpu_has_feature(CPU_FTR_USE_TB)
|
||||
#define __USE_RTC() (!cpu_has_feature(CPU_FTR_USE_TB))
|
||||
#else
|
||||
#define __USE_RTC() 0
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue