summaryrefslogtreecommitdiffstats
path: root/patches/boot_time_opt/0109-init_task-faster-timerslack.patch
diff options
context:
space:
mode:
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