summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorSyed Rameez Mustafa <rameezmustafa@codeaurora.org>2014-09-08 13:42:41 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:00:40 -0700
commitdaf32916ebcef4194866c7f378046e9871fcc227 (patch)
treedd75b0b7b10796741b7c13f46e45826a064e701f /kernel
parentb12fe96d5593db81bb3475b6d6fdd557de49be5e (diff)
sched: extend sched_task_load tracepoint to indicate small tasks
While debugging its always useful to know whether a task is small or not to determine the scheduling algorithm being used. Have the sched_task_load tracepoint indicate this information rather than having to do manual calculations for every task placement. Change-Id: Ibf390095f05c7da80df1ebfe00f4c5af66c97d12 Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/fair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index be2bafa51ea7..dc01c82bb52f 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -3074,7 +3074,7 @@ static int select_best_cpu(struct task_struct *p, int target, int reason)
int small_task = is_small_task(p);
int boost = sched_boost();
- trace_sched_task_load(p, boost, reason);
+ trace_sched_task_load(p, small_task, boost, reason);
if (small_task && !boost) {
best_cpu = best_small_task_cpu(p);