aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-08-14 14:15:54 +0100
committerMark Brown <broonie@linaro.org>2014-08-14 14:15:54 +0100
commitdc0d4d9c2eec4dc16bcb080eda8727e65e921c0a (patch)
tree2c2b1546a517a31facc585cde55ccaaab78a6ce6 /include/linux
parentee8cfc683036b6386fccfb2121d70f3d68e5a1a7 (diff)
parente482d95c1d1888f34cc3f7e6778806cfda6174ff (diff)
Merge branch 'for-lsk' of git://git.linaro.org/arm/big.LITTLE/mp into lsk-v3.10-big.LITTLE
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 0e2a546cdade..b36dd2de437d 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -946,6 +946,14 @@ struct sched_avg {
u32 usage_avg_sum;
};
+#ifdef CONFIG_SCHED_HMP
+/*
+ * We want to avoid boosting any processes forked from init (PID 1)
+ * and kthreadd (assumed to be PID 2).
+ */
+#define hmp_task_should_forkboost(task) ((task->parent && task->parent->pid > 2))
+#endif
+
#ifdef CONFIG_SCHEDSTATS
struct sched_statistics {
u64 wait_start;