aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/Kconfig
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2011-04-09 09:25:47 -0400
committerGlenn Elliott <gelliott@cs.unc.edu>2011-04-09 09:25:47 -0400
commitd3f99f11f3440d70658b9d9df756bbd9b63f8058 (patch)
treeb4caf603c530cfd21a1515e496f83cd296e0d0fc /litmus/Kconfig
parentc05eaa8091d2cadc20363d44a85ee454262f4bc2 (diff)
Bias task scheduling towards previous CPU.
Added the option to allow tasks to be scheduled on their previous CPU if that CPU is not currently executing real-time work. Helps preserve cache affinity and reduction in migration costs. See CONFIG_CPU_SCHED_BIAS help for more information. Solution developed by Jonathan Herman.
Diffstat (limited to 'litmus/Kconfig')
-rw-r--r--litmus/Kconfig18
1 files changed, 18 insertions, 0 deletions
diff --git a/litmus/Kconfig b/litmus/Kconfig
index ad8dc8308cf0..651b66a77c65 100644
--- a/litmus/Kconfig
+++ b/litmus/Kconfig
@@ -36,6 +36,24 @@ config RELEASE_MASTER
36 36
37endmenu 37endmenu
38 38
39menu "Performance Hacks"
40
41config CPU_SCHED_BIAS
42 bool "Tasks prefer previous CPU(s)."
43 default n
44 help
45 Allow tasks to be rescheduled on their previously used CPU(s) if that
46 CPU(s) is not currently not executing real-time work. This may improve
47 performance through the possible preservation of cache affinity.
48
49 Warning: May make bugs harder to find as tasks will migrate less
50 frequently.
51
52 Only bias towards previously used CPU is currently implemented. In the
53 future: bias on CPU topology.
54
55endmenu
56
39menu "Real-Time Synchronization" 57menu "Real-Time Synchronization"
40 58
41config NP_SECTION 59config NP_SECTION