ia64/xen-unstable

changeset 19150:93d2193450c4

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>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Feb 03 18:13:22 2009 +0000 (2009-02-03)
parents efef232bbbdb
children 66020c204f14
files xen/drivers/cpufreq/cpufreq_misc_governors.c xen/drivers/cpufreq/cpufreq_ondemand.c
line diff
     1.1 --- a/xen/drivers/cpufreq/cpufreq_misc_governors.c	Tue Feb 03 18:12:51 2009 +0000
     1.2 +++ b/xen/drivers/cpufreq/cpufreq_misc_governors.c	Tue Feb 03 18:13:22 2009 +0000
     1.3 @@ -61,7 +61,7 @@ static int __init cpufreq_gov_userspace_
     1.4  }
     1.5  __initcall(cpufreq_gov_userspace_init);
     1.6  
     1.7 -static void cpufreq_gov_userspace_exit(void)
     1.8 +static void __exit cpufreq_gov_userspace_exit(void)
     1.9  {
    1.10      cpufreq_unregister_governor(&cpufreq_gov_userspace);
    1.11  }
    1.12 @@ -106,7 +106,7 @@ static int __init cpufreq_gov_performanc
    1.13  }
    1.14  __initcall(cpufreq_gov_performance_init);
    1.15  
    1.16 -static void cpufreq_gov_performance_exit(void)
    1.17 +static void __exit cpufreq_gov_performance_exit(void)
    1.18  {
    1.19      cpufreq_unregister_governor(&cpufreq_gov_performance);
    1.20  }
    1.21 @@ -151,7 +151,7 @@ static int __init cpufreq_gov_powersave_
    1.22  }
    1.23  __initcall(cpufreq_gov_powersave_init);
    1.24  
    1.25 -static void cpufreq_gov_powersave_exit(void)
    1.26 +static void __exit cpufreq_gov_powersave_exit(void)
    1.27  {
    1.28      cpufreq_unregister_governor(&cpufreq_gov_powersave);
    1.29  }
     2.1 --- a/xen/drivers/cpufreq/cpufreq_ondemand.c	Tue Feb 03 18:12:51 2009 +0000
     2.2 +++ b/xen/drivers/cpufreq/cpufreq_ondemand.c	Tue Feb 03 18:13:22 2009 +0000
     2.3 @@ -333,7 +333,7 @@ static int __init cpufreq_gov_dbs_init(v
     2.4  }
     2.5  __initcall(cpufreq_gov_dbs_init);
     2.6  
     2.7 -static void cpufreq_gov_dbs_exit(void)
     2.8 +static void __exit cpufreq_gov_dbs_exit(void)
     2.9  {
    2.10      cpufreq_unregister_governor(&cpufreq_gov_dbs);
    2.11  }