Listing 2. sched-yield Code

asmlinkage int sys_sched_yield(void) {
 cli();
move_last_runqueue(current);
current->counter = 0; // THIS IS THE LINE
 need_resched = 1;
 sti();
 return 0;
 }