Skip to content

Commit 30ec89e

Browse files
committed
Revert "raspberrypi-cpufreq: Only report integer pll divisor frequencies"
This reverts commit f44019c.
1 parent d3329e3 commit 30ec89e

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎drivers/cpufreq/raspberrypi-cpufreq.c‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <linux/clk.h>
99
#include <linux/cpu.h>
1010
#include <linux/cpufreq.h>
11-
#include <linux/math64.h>
1211
#include <linux/module.h>
1312
#include <linux/platform_device.h>
1413
#include <linux/pm_opp.h>
@@ -23,7 +22,6 @@ static int raspberrypi_cpufreq_probe(struct platform_device *pdev)
2322
unsigned long min, max;
2423
unsigned long rate;
2524
struct clk *clk;
26-
int div;
2725
int ret;
2826

2927
cpu_dev = get_cpu_device(0);
@@ -46,10 +44,7 @@ static int raspberrypi_cpufreq_probe(struct platform_device *pdev)
4644
max = roundup(clk_round_rate(clk, ULONG_MAX), RASPBERRYPI_FREQ_INTERVAL);
4745
clk_put(clk);
4846

49-
for (div = 2; ; div++) {
50-
rate = div_u64((u64)max * 2, div);
51-
if (rate < min)
52-
break;
47+
for (rate = min; rate <= max; rate += RASPBERRYPI_FREQ_INTERVAL) {
5348
ret = dev_pm_opp_add(cpu_dev, rate, 0);
5449
if (ret)
5550
goto remove_opp;

0 commit comments

Comments
 (0)