aboutsummaryrefslogtreecommitdiffstats
path: root/xen/drivers/cpufreq
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-02-03 18:13:22 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-02-03 18:13:22 +0000
commit7beb0a2feb28edd96fa055b28752ebe948106c4d (patch)
tree5632f25b0113231816ee50e4258fcde64f551d37 /xen/drivers/cpufreq
parent77699d42403ccfb0239423c615afcb51c8ccb2f0 (diff)
downloadxen-7beb0a2feb28edd96fa055b28752ebe948106c4d.tar.gz
xen-7beb0a2feb28edd96fa055b28752ebe948106c4d.tar.bz2
xen-7beb0a2feb28edd96fa055b28752ebe948106c4d.zip
cpufreq: attach __exit to the (unused) cpufreq governor exit handlers
... in order to make them disappear from the final image. Of course they could as well be removed altogether, but I assumed that whoever added them had a reason to do so. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/drivers/cpufreq')
-rw-r--r--xen/drivers/cpufreq/cpufreq_misc_governors.c6
-rw-r--r--xen/drivers/cpufreq/cpufreq_ondemand.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/xen/drivers/cpufreq/cpufreq_misc_governors.c b/xen/drivers/cpufreq/cpufreq_misc_governors.c
index 8b391d39f8..fb21767216 100644
--- a/xen/drivers/cpufreq/cpufreq_misc_governors.c
+++ b/xen/drivers/cpufreq/cpufreq_misc_governors.c
@@ -61,7 +61,7 @@ static int __init cpufreq_gov_userspace_init(void)
}
__initcall(cpufreq_gov_userspace_init);
-static void cpufreq_gov_userspace_exit(void)
+static void __exit cpufreq_gov_userspace_exit(void)
{
cpufreq_unregister_governor(&cpufreq_gov_userspace);
}
@@ -106,7 +106,7 @@ static int __init cpufreq_gov_performance_init(void)
}
__initcall(cpufreq_gov_performance_init);
-static void cpufreq_gov_performance_exit(void)
+static void __exit cpufreq_gov_performance_exit(void)
{
cpufreq_unregister_governor(&cpufreq_gov_performance);
}
@@ -151,7 +151,7 @@ static int __init cpufreq_gov_powersave_init(void)
}
__initcall(cpufreq_gov_powersave_init);
-static void cpufreq_gov_powersave_exit(void)
+static void __exit cpufreq_gov_powersave_exit(void)
{
cpufreq_unregister_governor(&cpufreq_gov_powersave);
}
diff --git a/xen/drivers/cpufreq/cpufreq_ondemand.c b/xen/drivers/cpufreq/cpufreq_ondemand.c
index 609540e477..073d7eb37d 100644
--- a/xen/drivers/cpufreq/cpufreq_ondemand.c
+++ b/xen/drivers/cpufreq/cpufreq_ondemand.c
@@ -333,7 +333,7 @@ static int __init cpufreq_gov_dbs_init(void)
}
__initcall(cpufreq_gov_dbs_init);
-static void cpufreq_gov_dbs_exit(void)
+static void __exit cpufreq_gov_dbs_exit(void)
{
cpufreq_unregister_governor(&cpufreq_gov_dbs);
}