All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: davej@codemonkey.org.uk
Cc: cpufreq@www.linux.org.uk, linux-kernel@vger.kernel.org
Subject: [2.6 patch] small cpufreq cleanup
Date: Sat, 30 Oct 2004 09:22:46 +0200	[thread overview]
Message-ID: <20041030072246.GG4374@stusta.de> (raw)

the patch below does the following cleanups in the cpufreq code:
- remove the __deprecated cpufreq_set{,max} functions that didn't have
  any users left
- make cpufreq_gov_dbs static

cpufreq_driver_target and cpufreq_governor in drivers/cpufreq/cpufreq.c 
also both have currently exactly zero in-kernel users, but I left them.


diffstat output:
 drivers/cpufreq/cpufreq_ondemand.c  |    3 +--
 drivers/cpufreq/cpufreq_userspace.c |   21 ---------------------
 include/linux/cpufreq.h             |    3 ---
 3 files changed, 1 insertion(+), 26 deletions(-)



Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.10-rc1-mm2-full/include/linux/cpufreq.h.old	2004-10-30 08:02:34.000000000 +0200
+++ linux-2.6.10-rc1-mm2-full/include/linux/cpufreq.h	2004-10-30 08:03:07.000000000 +0200
@@ -261,9 +261,6 @@
  *********************************************************************/
 #ifdef CONFIG_CPU_FREQ_24_API
 
-int __deprecated cpufreq_setmax(unsigned int cpu);
-int __deprecated cpufreq_set(unsigned int kHz, unsigned int cpu);
-
 
 /* /proc/sys/cpu */
 enum {
--- linux-2.6.10-rc1-mm2-full/drivers/cpufreq/cpufreq_userspace.c.old	2004-10-30 08:05:10.000000000 +0200
+++ linux-2.6.10-rc1-mm2-full/drivers/cpufreq/cpufreq_userspace.c	2004-10-30 08:06:04.000000000 +0200
@@ -141,27 +141,6 @@
 
 static unsigned int warning_print = 0;
 
-int __deprecated cpufreq_set(unsigned int freq, unsigned int cpu)
-{
-	return _cpufreq_set(freq, cpu);
-}
-EXPORT_SYMBOL_GPL(cpufreq_set);
-
-
-/** 
- * cpufreq_setmax - set the CPU to the maximum frequency
- * @cpu - affected cpu;
- *
- * Sets the CPU frequency to the maximum frequency supported by
- * this CPU.
- */
-int __deprecated cpufreq_setmax(unsigned int cpu)
-{
-	if (!cpu_is_managed[cpu] || !cpu_online(cpu))
-		return -EINVAL;
-	return _cpufreq_set(cpu_max_freq[cpu], cpu);
-}
-EXPORT_SYMBOL_GPL(cpufreq_setmax);
 
 /*********************** cpufreq_sysctl interface ********************/
 static int
--- linux-2.6.10-rc1-mm2-full/drivers/cpufreq/cpufreq_ondemand.c.old	2004-10-30 07:58:22.000000000 +0200
+++ linux-2.6.10-rc1-mm2-full/drivers/cpufreq/cpufreq_ondemand.c	2004-10-30 07:59:05.000000000 +0200
@@ -410,12 +410,11 @@
 	return 0;
 }
 
-struct cpufreq_governor cpufreq_gov_dbs = {
+static struct cpufreq_governor cpufreq_gov_dbs = {
 	.name		= "ondemand",
 	.governor	= cpufreq_governor_dbs,
 	.owner		= THIS_MODULE,
 };
-EXPORT_SYMBOL(cpufreq_gov_dbs);
 
 static int __init cpufreq_gov_dbs_init(void)
 {

             reply	other threads:[~2004-10-30  7:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-30  7:22 Adrian Bunk [this message]
2004-10-30  7:38 ` [2.6 patch] small cpufreq cleanup Dominik Brodowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041030072246.GG4374@stusta.de \
    --to=bunk@stusta.de \
    --cc=cpufreq@www.linux.org.uk \
    --cc=davej@codemonkey.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.