Revert "cpu: Add function to confirm last cpu of cluster".
authorYoungtae Lee <yt0729.lee@samsung.com>
Mon, 21 May 2018 05:04:03 +0000 (14:04 +0900)
committerlakkyung.jung <lakkyung.jung@samsung.com>
Mon, 23 Jul 2018 05:59:20 +0000 (14:59 +0900)
This reverts commit 0ef067b178779bee49c8cddf5ad9ff07eade0512.

Change-Id: I0defd8ea13a5435cedac4a4901033977e2e67975

kernel/cpu.c

index 33877e971a8ef73a1ba2941b6c9e023ce6751a96..cb40d66e714ee532f5cbf381070831bd8633ef60 100644 (file)
@@ -1626,22 +1626,6 @@ cpu_hotplug_pm_callback(struct notifier_block *nb,
        return NOTIFY_OK;
 }
 
-bool cpuhp_last_fastcpu(unsigned int cpu)
-{
-       struct cpumask mask;
-       int do_last_cpu;
-
-       if (!cpumask_test_cpu(cpu, &cpu_fastoff_mask))
-               return true;
-
-       cpumask_and(&mask, cpu_cluster_mask(cpu), &cpu_fastoff_mask);
-       do_last_cpu = cpumask_first(&mask);
-       if (do_last_cpu == cpu)
-               return true;
-
-       return false;
-}
-EXPORT_SYMBOL_GPL(cpuhp_last_fastcpu);
 
 struct cpumask cpu_fastoff_mask;
 EXPORT_SYMBOL(cpu_fastoff_mask);