aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/time.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-05-25 18:49:59 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-05-29 05:49:41 -0400
commit5cbc30737398b49f62ae8603129ce43ac7db1a41 (patch)
tree45d01a686865e6fd9c32b670f77af1e37db03008 /arch/sparc64/kernel/time.c
parente01c0d6d8cf29c1c11725837b265598cab687952 (diff)
[SPARC64]: Use machine description and OBP properly for cpu probing.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/time.c')
-rw-r--r--arch/sparc64/kernel/time.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/sparc64/kernel/time.c b/arch/sparc64/kernel/time.c
index 2d63d7689962..0f62ea82953c 100644
--- a/arch/sparc64/kernel/time.c
+++ b/arch/sparc64/kernel/time.c
@@ -862,7 +862,6 @@ fs_initcall(clock_init);
862static unsigned long sparc64_init_timers(void) 862static unsigned long sparc64_init_timers(void)
863{ 863{
864 struct device_node *dp; 864 struct device_node *dp;
865 struct property *prop;
866 unsigned long clock; 865 unsigned long clock;
867#ifdef CONFIG_SMP 866#ifdef CONFIG_SMP
868 extern void smp_tick_init(void); 867 extern void smp_tick_init(void);
@@ -879,17 +878,15 @@ static unsigned long sparc64_init_timers(void)
879 if (manuf == 0x17 && impl == 0x13) { 878 if (manuf == 0x17 && impl == 0x13) {
880 /* Hummingbird, aka Ultra-IIe */ 879 /* Hummingbird, aka Ultra-IIe */
881 tick_ops = &hbtick_operations; 880 tick_ops = &hbtick_operations;
882 prop = of_find_property(dp, "stick-frequency", NULL); 881 clock = of_getintprop_default(dp, "stick-frequency", 0);
883 } else { 882 } else {
884 tick_ops = &tick_operations; 883 tick_ops = &tick_operations;
885 cpu_find_by_instance(0, &dp, NULL); 884 clock = local_cpu_data().clock_tick;
886 prop = of_find_property(dp, "clock-frequency", NULL);
887 } 885 }
888 } else { 886 } else {
889 tick_ops = &stick_operations; 887 tick_ops = &stick_operations;
890 prop = of_find_property(dp, "stick-frequency", NULL); 888 clock = of_getintprop_default(dp, "stick-frequency", 0);
891 } 889 }
892 clock = *(unsigned int *) prop->value;
893 890
894#ifdef CONFIG_SMP 891#ifdef CONFIG_SMP
895 smp_tick_init(); 892 smp_tick_init();