diff options
| author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-06-26 04:02:52 -0400 | 
|---|---|---|
| committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-07-23 05:58:00 -0400 | 
| commit | c2034d8205674daa954ee314f93270f39b90148f (patch) | |
| tree | 49a910b983363cceec8ad5aa2aa85904de0b0388 /litmus/sched_pfp.c | |
| parent | aced1a8244189e4016b1fdef249b3297c09f626d (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.
Diffstat (limited to 'litmus/sched_pfp.c')
| -rw-r--r-- | litmus/sched_pfp.c | 4 | 
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 | ||
| 1622 | static long pfp_activate_plugin(void) | 1622 | static 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 | } | 
