forked from luck/tmp_suning_uos_patched
8875125efe
We always use resched_task() with rq->curr argument.
It's not possible to reschedule any task but rq's current.
The patch introduces resched_curr(struct rq *) to
replace all of the repeating patterns. The main aim
is cleanup, but there is a little size profit too:
(before)
$ size kernel/sched/built-in.o
text data bss dec hex filename
155274 16445 7042 178761 2ba49 kernel/sched/built-in.o
$ size vmlinux
text data bss dec hex filename
|
||
---|---|---|
.. | ||
postprocess | ||
events-kmem.txt | ||
events-nmi.txt | ||
events-power.txt | ||
events.txt | ||
ftrace-design.txt | ||
ftrace.txt | ||
function-graph-fold.vim | ||
kprobetrace.txt | ||
mmiotrace.txt | ||
ring-buffer-design.txt | ||
tracepoint-analysis.txt | ||
tracepoints.txt | ||
uprobetracer.txt |