diff options
| -rw-r--r-- | tools/power/cpupower/utils/cpufreq-info.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/power/cpupower/utils/cpufreq-info.c b/tools/power/cpupower/utils/cpufreq-info.c index 3e701f0e9c14..df43cd45d810 100644 --- a/tools/power/cpupower/utils/cpufreq-info.c +++ b/tools/power/cpupower/utils/cpufreq-info.c | |||
| @@ -93,8 +93,6 @@ static void print_speed(unsigned long speed) | |||
| 93 | if (speed > 1000000) | 93 | if (speed > 1000000) |
| 94 | printf("%u.%06u GHz", ((unsigned int) speed/1000000), | 94 | printf("%u.%06u GHz", ((unsigned int) speed/1000000), |
| 95 | ((unsigned int) speed%1000000)); | 95 | ((unsigned int) speed%1000000)); |
| 96 | else if (speed > 100000) | ||
| 97 | printf("%u MHz", (unsigned int) speed); | ||
| 98 | else if (speed > 1000) | 96 | else if (speed > 1000) |
| 99 | printf("%u.%03u MHz", ((unsigned int) speed/1000), | 97 | printf("%u.%03u MHz", ((unsigned int) speed/1000), |
| 100 | (unsigned int) (speed%1000)); | 98 | (unsigned int) (speed%1000)); |
