From: Hauke Mehrtens Date: Sat, 5 Oct 2013 18:25:52 +0000 (+0200) Subject: backports: remove cpufreq_quick_get_max() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=238df763a292566596218aebc9fe6e61202386c8;p=openwrt%2Fstaging%2Fblogic.git backports: remove cpufreq_quick_get_max() This was only needed for some of the DRM drivers, remove it. Signed-off-by: Hauke Mehrtens --- diff --git a/backport/backport-include/linux/cpufreq.h b/backport/backport-include/linux/cpufreq.h deleted file mode 100644 index dbf234d3af0b..000000000000 --- a/backport/backport-include/linux/cpufreq.h +++ /dev/null @@ -1,13 +0,0 @@ -#ifndef __BACKPORT_INCLUDE_CPUFREQ_H -#define __BACKPORT_INCLUDE_CPUFREQ_H -#include_next -#include - -#if LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0) -#ifdef CONFIG_CPU_FREQ -#define cpufreq_quick_get_max LINUX_BACKPORT(cpufreq_quick_get_max) -unsigned int cpufreq_quick_get_max(unsigned int cpu); -#endif -#endif - -#endif /* __BACKPORT_INCLUDE_CPUFREQ_H */ diff --git a/backport/compat/compat-3.1.c b/backport/compat/compat-3.1.c index b876329fbaf6..0d9c3a279f84 100644 --- a/backport/compat/compat-3.1.c +++ b/backport/compat/compat-3.1.c @@ -11,29 +11,6 @@ #include #include -/* This backports: - * commit 3d73710880afa3d61cf57b5d4eb192e812eb7e4f - * Author: Jesse Barnes - * Date: Tue Jun 28 10:59:12 2011 -0700 - * - * cpufreq: expose a cpufreq_quick_get_max routine - */ -#ifdef CONFIG_CPU_FREQ -unsigned int cpufreq_quick_get_max(unsigned int cpu) -{ - struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); - unsigned int ret_freq = 0; - - if (policy) { - ret_freq = policy->max; - cpufreq_cpu_put(policy); - } - - return ret_freq; -} -EXPORT_SYMBOL_GPL(cpufreq_quick_get_max); -#endif - static DEFINE_SPINLOCK(compat_simple_ida_lock); /**