Skip to content
Snippets Groups Projects
Commit 48cdeae8 authored by Ollrogge's avatar Ollrogge
Browse files

Working pb_submit_plan

parent 47e8b0d0
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,7 @@ int pb_submit_plan(struct rq *rq)
pb->is_initialized = 1; // must be initialized last
pb->mode = PB_ADMIN_MODE;
resched_curr(rq); // reschedule ASAP
return 0;
......@@ -51,7 +52,8 @@ EXPORT_SYMBOL(pb_submit_plan);
void set_pb_plan_size(struct pb_rq *pb_rq, unsigned int size)
{
pb_rq->size = size;
pb_rq->plan = kmalloc( sizeof(struct plan_entry) * size ,GFP_KERNEL);
pb_rq->plan = kmalloc(sizeof(struct plan_entry) * size , GFP_KERNEL);
memset(pb_rq->plan, 0x0, sizeof(struct plan_entry) * size);
}
EXPORT_SYMBOL(set_pb_plan_size);
......
......@@ -26,6 +26,7 @@ static void init_rq(struct rq *rq)
struct pb_rq *pb_rq = &rq->pb;
struct task_struct *proxy_task;
proxy_task = kthread_create(loop_thread_func, NULL, "PB proxy thread");
proxy_task->sched_class = &pb_sched_class;
set_pb_plan_size(pb_rq, [% plan_size %]);
[% FOREACH entry IN plan %]set_pb_plan_entry(pb_rq, [%entry.index%], [%entry.exec_t%], [%entry.idle_t%], proxy_task);
[% END %]
......
No preview for this file type
......@@ -12,7 +12,7 @@ COMMAND+=$IMAGE_OPTIONS
COMMAND+=" -append \"root=/dev/sda rootwait rw single console=ttyS0 nokaslr\"" # disable kaslr for better gdb debugging
COMMAND+=" --enable-kvm"
COMMAND+=" --nographic"
COMMAND+=" --smp 2"
COMMAND+=" --smp 1"
COMMAND+=" -net nic -net user"
COMMAND+=" -monitor none"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment