diff options
Diffstat (limited to 'patches/boot_time_opt/0110-init_task-faster-timerslack.patch')
-rw-r--r-- | patches/boot_time_opt/0110-init_task-faster-timerslack.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/patches/boot_time_opt/0110-init_task-faster-timerslack.patch b/patches/boot_time_opt/0110-init_task-faster-timerslack.patch new file mode 100644 index 0000000..b0075ff --- /dev/null +++ b/patches/boot_time_opt/0110-init_task-faster-timerslack.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 42c2cb32259b76fb1f6713d99c4f0922e97bcc8d Mon Sep 17 00:00:00 2001 | ||
2 | From: Arjan van de Ven <arjan@linux.intel.com> | ||
3 | Date: Wed, 23 Mar 2016 14:52:41 +0000 | ||
4 | Subject: [PATCH 110/124] init_task: faster timerslack | ||
5 | |||
6 | the default tuning is a compromise between client power and server performance; | ||
7 | for a server distro like Clear Linux, we don't need to compromise. | ||
8 | (for non-server usages we have different kernel binaries) | ||
9 | |||
10 | in principle this can be done as a patch to systemd as well, but we have a shared | ||
11 | systemd between usages while we have different kernels, so the logistics | ||
12 | for where the patch goes work out better here | ||
13 | --- | ||
14 | include/linux/init_task.h | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/include/linux/init_task.h b/include/linux/init_task.h | ||
18 | index 325f649d77ff..e0eb261e17cb 100644 | ||
19 | --- a/include/linux/init_task.h | ||
20 | +++ b/include/linux/init_task.h | ||
21 | @@ -249,7 +249,7 @@ extern struct task_group root_task_group; | ||
22 | .journal_info = NULL, \ | ||
23 | .cpu_timers = INIT_CPU_TIMERS(tsk.cpu_timers), \ | ||
24 | .pi_lock = __RAW_SPIN_LOCK_UNLOCKED(tsk.pi_lock), \ | ||
25 | - .timer_slack_ns = 50000, /* 50 usec default slack */ \ | ||
26 | + .timer_slack_ns = 1000, /* 1 usec default slack */ \ | ||
27 | .pids = { \ | ||
28 | [PIDTYPE_PID] = INIT_PID_LINK(PIDTYPE_PID), \ | ||
29 | [PIDTYPE_PGID] = INIT_PID_LINK(PIDTYPE_PGID), \ | ||
30 | -- | ||
31 | 2.11.1 | ||
32 | |||