summaryrefslogtreecommitdiffstats
path: root/patches/boot_time_opt/0109-init_task-faster-timerslack.patch
diff options
context:
space:
mode:
authorMartin Borg <martin.borg@enea.com>2018-03-23 14:01:03 +0100
committerAdrian Dudau <adrian.dudau@enea.com>2018-03-26 09:57:31 +0200
commitc4bd5f6e084a6ced2c7a2f76798d0a34947ffeb7 (patch)
treee46d5f9bceca1947817b7739d366aa44faea9be1 /patches/boot_time_opt/0109-init_task-faster-timerslack.patch
parentdfc8946f58bbf4aa3a345c4fb5d5895502936edd (diff)
downloadenea-kernel-cache-c4bd5f6e084a6ced2c7a2f76798d0a34947ffeb7.tar.gz
boot_time_opt: update host boot time optimization patches for 4.14
The new patches are based on: https://github.com/clearlinux-pkgs/linux-lts commit 5595fe425a52af6734235a1a953b6b03210060ec Signed-off-by: Martin Borg <martin.borg@enea.com> Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'patches/boot_time_opt/0109-init_task-faster-timerslack.patch')
-rw-r--r--patches/boot_time_opt/0109-init_task-faster-timerslack.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/patches/boot_time_opt/0109-init_task-faster-timerslack.patch b/patches/boot_time_opt/0109-init_task-faster-timerslack.patch
new file mode 100644
index 0000000..9687012
--- /dev/null
+++ b/patches/boot_time_opt/0109-init_task-faster-timerslack.patch
@@ -0,0 +1,34 @@
1From 4c35ad2b763bca4e0eaf449d42a0e4c49197da2c Mon Sep 17 00:00:00 2001
2From: Arjan van de Ven <arjan@linux.intel.com>
3Date: Wed, 23 Mar 2016 14:52:41 +0000
4Subject: [PATCH 109/126] init_task: faster timerslack
5
6the default tuning is a compromise between client power and server
7performance;
8for a server distro like Clear Linux, we don't need to compromise.
9(for non-server usages we have different kernel binaries)
10
11in principle this can be done as a patch to systemd as well, but we have
12a shared
13systemd between usages while we have different kernels, so the logistics
14for where the patch goes work out better here
15---
16 include/linux/init_task.h | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/include/linux/init_task.h b/include/linux/init_task.h
20index 8062e6cc607c..2903519e2462 100644
21--- a/include/linux/init_task.h
22+++ b/include/linux/init_task.h
23@@ -275,7 +275,7 @@ extern struct cred init_cred;
24 .journal_info = NULL, \
25 INIT_CPU_TIMERS(tsk) \
26 .pi_lock = __RAW_SPIN_LOCK_UNLOCKED(tsk.pi_lock), \
27- .timer_slack_ns = 50000, /* 50 usec default slack */ \
28+ .timer_slack_ns = 1000, /* 1 usec default slack */ \
29 .pids = { \
30 [PIDTYPE_PID] = INIT_PID_LINK(PIDTYPE_PID), \
31 [PIDTYPE_PGID] = INIT_PID_LINK(PIDTYPE_PGID), \
32--
332.15.0
34