Kernel retrieve timeslice used android#Now that we have a new kernel with WRR scheduler, we can load it to Android emulator to see how well it works.īefore testing, we need write a test program to set a task's schedule policy. After these modifications and creations, we can type make -jx(x indicates number of core used) to get the target image file zImage. Kernel retrieve timeslice used code#We add the state checking code in function enqueue_wrr_entity().ĭescription above is the general idea of the implementation. To implement this we have to use function task_group_path() in /sched/debug.c to get the state of a task. The things we need further add to wrr_sched_class is the codes related to judging the state of tasks, and switching the timeslice the tasks' states changing. We omit all codes related to SMP and Preemption and substitute bitmap and prio_array struct operations with in-built list operations like list_add and list_del. The main idea of implementing this class and related functions is to imitate and revise codes in rt.c. It contains wrr_sched_class, which is major part of WRR. next in rt_sched_class to make it point to wrr_sched_classĬreate /kernel/sched/wrr.c.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |