diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-24 18:17:55 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-05-05 23:56:17 +0200 |
commit | 983ed7a66bcec9dc307d89dc7af47cdf209e56af (patch) | |
tree | a5fc14c7fe993b795198bbeee2919ad695735e81 /kernel/sched_fair.c | |
parent | d478c2cfaa2476f8b6876f9eb4d8fddcfa986479 (diff) | |
download | kernel_samsung_smdk4412-983ed7a66bcec9dc307d89dc7af47cdf209e56af.zip kernel_samsung_smdk4412-983ed7a66bcec9dc307d89dc7af47cdf209e56af.tar.gz kernel_samsung_smdk4412-983ed7a66bcec9dc307d89dc7af47cdf209e56af.tar.bz2 |
sched: add statics, don't return void expressions
Noticed by sparse:
kernel/sched.c:760:20: warning: symbol 'sched_feat_names' was not declared. Should it be static?
kernel/sched.c:767:5: warning: symbol 'sched_feat_open' was not declared. Should it be static?
kernel/sched_fair.c:845:3: warning: returning void-valued expression
kernel/sched.c:4386:3: warning: returning void-valued expression
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 1295ddc..e8e5ad2 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c @@ -841,8 +841,10 @@ entity_tick(struct cfs_rq *cfs_rq, struct sched_entity *curr, int queued) * queued ticks are scheduled to match the slice, so don't bother * validating it and just reschedule. */ - if (queued) - return resched_task(rq_of(cfs_rq)->curr); + if (queued) { + resched_task(rq_of(cfs_rq)->curr); + return; + } /* * don't let the period tick interfere with the hrtick preemption */ |