sched: simplify __check_preempt_curr_fair()

Preparatory patch for fix-ideal-runtime:

simplify __check_preempt_curr_fair(): get rid of the integer return.

text data bss dec hex filename
13404 228 1204 14836 39f4 sched.o.before
13393 228 1204 14825 39e9 sched.o.after

functionality is unchanged.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by Peter Zijlstra and committed by Ingo Molnar 7c92e54f cf2ab469

+3 -5
+3 -5
kernel/sched_fair.c
··· 673 /* 674 * Preempt the current task with a newly woken task if needed: 675 */ 676 - static int 677 __check_preempt_curr_fair(struct cfs_rq *cfs_rq, struct sched_entity *se, 678 struct sched_entity *curr, unsigned long granularity) 679 { ··· 686 */ 687 if (__delta > niced_granularity(curr, granularity)) { 688 resched_task(rq_of(cfs_rq)->curr); 689 - return 1; 690 } 691 - return 0; 692 } 693 694 static inline void ··· 763 if (delta_exec > ideal_runtime) 764 gran = 0; 765 766 - if (__check_preempt_curr_fair(cfs_rq, next, curr, gran)) 767 - curr->prev_sum_exec_runtime = curr->sum_exec_runtime; 768 } 769 770 /**************************************************
··· 673 /* 674 * Preempt the current task with a newly woken task if needed: 675 */ 676 + static void 677 __check_preempt_curr_fair(struct cfs_rq *cfs_rq, struct sched_entity *se, 678 struct sched_entity *curr, unsigned long granularity) 679 { ··· 686 */ 687 if (__delta > niced_granularity(curr, granularity)) { 688 resched_task(rq_of(cfs_rq)->curr); 689 + curr->prev_sum_exec_runtime = curr->sum_exec_runtime; 690 } 691 } 692 693 static inline void ··· 764 if (delta_exec > ideal_runtime) 765 gran = 0; 766 767 + __check_preempt_curr_fair(cfs_rq, next, curr, gran); 768 } 769 770 /**************************************************