cpufreq: Don't check if cpu is online/offline for cpufreq callbacks
[sfrench/cifs-2.6.git] / arch / sh / kernel / cpufreq.c
index 2c7bd94f95ee0b2ea4a33b4ffb1e96bea2d8888c..0fdf64b759c8277924117a43104e25383c47f655 100644 (file)
@@ -51,9 +51,6 @@ static int sh_cpufreq_target(struct cpufreq_policy *policy,
        struct device *dev;
        long freq;
 
-       if (!cpu_online(cpu))
-               return -ENODEV;
-
        cpus_allowed = current->cpus_allowed;
        set_cpus_allowed_ptr(current, cpumask_of(cpu));
 
@@ -111,9 +108,6 @@ static int sh_cpufreq_cpu_init(struct cpufreq_policy *policy)
        struct cpufreq_frequency_table *freq_table;
        struct device *dev;
 
-       if (!cpu_online(cpu))
-               return -ENODEV;
-
        dev = get_cpu_device(cpu);
 
        cpuclk = clk_get(dev, "cpu_clk");