From cd96ffa41f7c8b857ec5691436b67bf63df7ebba Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Wed, 12 Oct 2005 19:10:07 +0000 Subject: [PATCH] * back out Josh's change to linux timer. PowerPC gives you a reference base timer, not a cpu timer, so looking at CPU frequency isn't what you want to do. This commit was SVN r7733. --- opal/mca/timer/linux/timer_linux_component.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/opal/mca/timer/linux/timer_linux_component.c b/opal/mca/timer/linux/timer_linux_component.c index c2a0fd2372..fe0ca83f04 100644 --- a/opal/mca/timer/linux/timer_linux_component.c +++ b/opal/mca/timer/linux/timer_linux_component.c @@ -112,20 +112,6 @@ opal_timer_linux_open(void) } } - if (0 == opal_timer_linux_freq) { - /* Alt. find the CPU speed - most timers are 1:1 with CPU speed */ - loc = find_info(fp, "clock", buf, 1024); - if (NULL != loc) { - if(strlen(loc) > 4) /* Strip off the 'MHz\n' */ - loc[strlen(loc)-4] = '\0'; - ret = sscanf(loc, "%f", &cpu_f); - if (1 == ret) { - /* numer is in MHz - convert to Hz and make an integer */ - opal_timer_linux_freq = (opal_timer_t) cpu_f * 1000000; - } - } - } - if (0 == opal_timer_linux_freq) { /* look for the sparc way of getting cpu frequency */ loc = find_info(fp, "Cpu0ClkTck", buf, 1024);