summaryrefslogtreecommitdiff
path: root/backport
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-10-05 20:25:52 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2013-10-23 19:24:41 +0200
commit238df763a292566596218aebc9fe6e61202386c8 (patch)
treefcd5b21d5ec15196adb25654664714d78413cb3a /backport
parentd1044a5f8c11ab574cc659cbe3222b371d470f84 (diff)
backports: remove cpufreq_quick_get_max()
This was only needed for some of the DRM drivers, remove it. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'backport')
-rw-r--r--backport/backport-include/linux/cpufreq.h13
-rw-r--r--backport/compat/compat-3.1.c23
2 files changed, 0 insertions, 36 deletions
diff --git a/backport/backport-include/linux/cpufreq.h b/backport/backport-include/linux/cpufreq.h
deleted file mode 100644
index dbf234d3..00000000
--- 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 <linux/cpufreq.h>
-#include <linux/version.h>
-
-#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 b876329f..0d9c3a27 100644
--- a/backport/compat/compat-3.1.c
+++ b/backport/compat/compat-3.1.c
@@ -11,29 +11,6 @@
#include <linux/idr.h>
#include <linux/cpufreq.h>
-/* This backports:
- * commit 3d73710880afa3d61cf57b5d4eb192e812eb7e4f
- * Author: Jesse Barnes <jbarnes@virtuousgeek.org>
- * 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);
/**