From: Youngtae Lee Date: Mon, 21 May 2018 05:04:03 +0000 (+0900) Subject: Revert "cpu: Add function to confirm last cpu of cluster". X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=027af519f82fb44e172654d1f6f43aeca954f414;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Revert "cpu: Add function to confirm last cpu of cluster". This reverts commit 0ef067b178779bee49c8cddf5ad9ff07eade0512. Change-Id: I0defd8ea13a5435cedac4a4901033977e2e67975 --- diff --git a/kernel/cpu.c b/kernel/cpu.c index 33877e971a8e..cb40d66e714e 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -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);