aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2012-06-26 04:02:52 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2012-07-23 05:58:00 -0400
commitc2034d8205674daa954ee314f93270f39b90148f (patch)
tree49a910b983363cceec8ad5aa2aa85904de0b0388
parentaced1a8244189e4016b1fdef249b3297c09f626d (diff)
P-FP: fix build bug if !CONFIG_RELEASE_MASTER
Move declaration of 'cpu' out of #ifdef block, it's also needed for CONFIG_LITMUS_LOCKING.
-rw-r--r--litmus/sched_pfp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/litmus/sched_pfp.c b/litmus/sched_pfp.c
index 42d17b0c08fd..3f1fb03f0c35 100644
--- a/litmus/sched_pfp.c
+++ b/litmus/sched_pfp.c
@@ -1621,9 +1621,11 @@ static long pfp_admit_task(struct task_struct* tsk)
1621 1621
1622static long pfp_activate_plugin(void) 1622static long pfp_activate_plugin(void)
1623{ 1623{
1624#ifdef CONFIG_RELEASE_MASTER 1624#if defined(CONFIG_RELEASE_MASTER) || defined(CONFIG_LITMUS_LOCKING)
1625 int cpu; 1625 int cpu;
1626#endif
1626 1627
1628#ifdef CONFIG_RELEASE_MASTER
1627 for_each_online_cpu(cpu) { 1629 for_each_online_cpu(cpu) {
1628 remote_dom(cpu)->release_master = atomic_read(&release_master_cpu); 1630 remote_dom(cpu)->release_master = atomic_read(&release_master_cpu);
1629 } 1631 }