summaryrefslogtreecommitdiffstats
path: root/src/include/kernel/scheduler.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/kernel/scheduler.H')
-rw-r--r--src/include/kernel/scheduler.H4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/kernel/scheduler.H b/src/include/kernel/scheduler.H
index 93854ac3b..31cdde70e 100644
--- a/src/include/kernel/scheduler.H
+++ b/src/include/kernel/scheduler.H
@@ -15,7 +15,8 @@ class Scheduler
void setNextRunnable();
protected:
- Scheduler() : iv_direction(false) {};
+ Scheduler(cpu_t* cpu) :
+ iv_direction(false), iv_idleTask(NULL), iv_cpu(cpu) {};
~Scheduler() {};
void setIdleTask(task_t* t) { iv_idleTask = t; };
@@ -26,6 +27,7 @@ class Scheduler
Util::Lockfree::Stack<task_t> iv_taskList[2];
task_t* iv_idleTask;
+ cpu_t* iv_cpu;
};
#endif
OpenPOWER on IntegriCloud