|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Cpufreq: simplify cpufreq_statistic_lock
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1231154201 0
# Node ID 5a7caf864f4e31e17dc87a3bca2fc6c34c7b8839
# Parent fd59c117994a3d4ad1e4cc51dc51e59e8d87e18c
Cpufreq: simplify cpufreq_statistic_lock init
Singed-off-by: Liu, Jinsong <jinsong.liu@xxxxxxxxx>
---
xen/drivers/cpufreq/utility.c | 18 +-----------------
1 files changed, 1 insertion(+), 17 deletions(-)
diff -r fd59c117994a -r 5a7caf864f4e xen/drivers/cpufreq/utility.c
--- a/xen/drivers/cpufreq/utility.c Mon Jan 05 11:16:12 2009 +0000
+++ b/xen/drivers/cpufreq/utility.c Mon Jan 05 11:16:41 2009 +0000
@@ -36,7 +36,7 @@ struct processor_pminfo *__read_mostly p
struct processor_pminfo *__read_mostly processor_pminfo[NR_CPUS];
struct cpufreq_policy *__read_mostly cpufreq_cpu_policy[NR_CPUS];
-DEFINE_PER_CPU(spinlock_t, cpufreq_statistic_lock);
+DEFINE_PER_CPU(spinlock_t, cpufreq_statistic_lock) = SPIN_LOCK_UNLOCKED;
/*********************************************************************
* Px STATISTIC INFO *
@@ -197,22 +197,6 @@ void cpufreq_statistic_reset(unsigned in
spin_unlock_irq(cpufreq_statistic_lock);
}
-
-static int __init cpufreq_statistic_lock_init(void)
-{
- unsigned int cpu;
- spinlock_t *cpufreq_statistic_lock;
-
- for (cpu=0; cpu<NR_CPUS; cpu++) {
- cpufreq_statistic_lock =
- &per_cpu(cpufreq_statistic_lock, cpu);
-
- spin_lock_init(cpufreq_statistic_lock);
- }
-
- return 0;
-}
-__initcall(cpufreq_statistic_lock_init);
/*********************************************************************
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] Cpufreq: simplify cpufreq_statistic_lock init,
Xen patchbot-unstable <=
|
|
|
|
|