diff options
author | Olaf Hering <olh@suse.de> | 2006-02-04 13:05:33 +0300 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-02-07 13:32:44 +0300 |
commit | 03478804920a53405dfff73a0b23e9dcbbbee1c1 (patch) | |
tree | 43c431ea5beffffc571b029e9896921d4d4c5a2e /arch/powerpc/platforms/chrp/time.c | |
parent | d8a8188ded1251afc6a2ec8a668b0bdf038b64a1 (diff) | |
download | linux-03478804920a53405dfff73a0b23e9dcbbbee1c1.tar.xz |
[PATCH] powerpc: restore clock speed in /proc/cpuinfo
Use generic_calibrate_decr to restore missing clock: speed in /proc/cpuinfo
Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/chrp/time.c')
-rw-r--r-- | arch/powerpc/platforms/chrp/time.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/powerpc/platforms/chrp/time.c b/arch/powerpc/platforms/chrp/time.c index 36a0f97bb7b1..78df2e7ca88a 100644 --- a/arch/powerpc/platforms/chrp/time.c +++ b/arch/powerpc/platforms/chrp/time.c @@ -167,24 +167,3 @@ void chrp_get_rtc_time(struct rtc_time *tm) tm->tm_mon = mon; tm->tm_year = year; } - - -void __init chrp_calibrate_decr(void) -{ - struct device_node *cpu; - unsigned int freq, *fp; - - /* - * The cpu node should have a timebase-frequency property - * to tell us the rate at which the decrementer counts. - */ - freq = 16666000; /* hardcoded default */ - cpu = find_type_devices("cpu"); - if (cpu != 0) { - fp = (unsigned int *) - get_property(cpu, "timebase-frequency", NULL); - if (fp != 0) - freq = *fp; - } - ppc_tb_freq = freq; -} |