diff options
Diffstat (limited to 'arch/sh/kernel/cpufreq.c')
-rw-r--r-- | arch/sh/kernel/cpufreq.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/sh/kernel/cpufreq.c b/arch/sh/kernel/cpufreq.c index 2c7bd94f95ee..0fdf64b759c8 100644 --- a/arch/sh/kernel/cpufreq.c +++ b/arch/sh/kernel/cpufreq.c | |||
@@ -51,9 +51,6 @@ static int sh_cpufreq_target(struct cpufreq_policy *policy, | |||
51 | struct device *dev; | 51 | struct device *dev; |
52 | long freq; | 52 | long freq; |
53 | 53 | ||
54 | if (!cpu_online(cpu)) | ||
55 | return -ENODEV; | ||
56 | |||
57 | cpus_allowed = current->cpus_allowed; | 54 | cpus_allowed = current->cpus_allowed; |
58 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); | 55 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); |
59 | 56 | ||
@@ -111,9 +108,6 @@ static int sh_cpufreq_cpu_init(struct cpufreq_policy *policy) | |||
111 | struct cpufreq_frequency_table *freq_table; | 108 | struct cpufreq_frequency_table *freq_table; |
112 | struct device *dev; | 109 | struct device *dev; |
113 | 110 | ||
114 | if (!cpu_online(cpu)) | ||
115 | return -ENODEV; | ||
116 | |||
117 | dev = get_cpu_device(cpu); | 111 | dev = get_cpu_device(cpu); |
118 | 112 | ||
119 | cpuclk = clk_get(dev, "cpu_clk"); | 113 | cpuclk = clk_get(dev, "cpu_clk"); |