aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/sched_credit.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-18 15:13:45 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-18 15:13:45 +0100
commit00c51c29c14611cdb4164fc64e89b6e7ad6c1df2 (patch)
tree4c4462e5d66a0bc71b12f669a3a3c9a17c682b1d /xen/common/sched_credit.c
parentc12bbde846af61d1b8441da6c627181ccbc7a157 (diff)
downloadxen-00c51c29c14611cdb4164fc64e89b6e7ad6c1df2.tar.gz
xen-00c51c29c14611cdb4164fc64e89b6e7ad6c1df2.tar.bz2
xen-00c51c29c14611cdb4164fc64e89b6e7ad6c1df2.zip
x86: Dynamically allocate percpu data area when a CPU comes online.
At the same time, the data area starts life zeroed. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/sched_credit.c')
-rw-r--r--xen/common/sched_credit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/sched_credit.c b/xen/common/sched_credit.c
index 6dff698a64..0aeae90cb7 100644
--- a/xen/common/sched_credit.c
+++ b/xen/common/sched_credit.c
@@ -231,7 +231,7 @@ static void burn_credits(struct csched_vcpu *svc, s_time_t now)
static int opt_tickle_one_idle __read_mostly = 1;
boolean_param("tickle_one_idle_cpu", opt_tickle_one_idle);
-DEFINE_PER_CPU(unsigned int, last_tickle_cpu) = 0;
+DEFINE_PER_CPU(unsigned int, last_tickle_cpu);
static inline void
__runq_tickle(unsigned int cpu, struct csched_vcpu *new)