summaryrefslogtreecommitdiffstats
path: root/patches/boot_time_opt/0109-init_task-faster-timerslack.patch
blob: 968701265c2eaf01621d04ca9b3081c27b492133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 4c35ad2b763bca4e0eaf449d42a0e4c49197da2c Mon Sep 17 00:00:00 2001
From: Arjan van de Ven <arjan@linux.intel.com>
Date: Wed, 23 Mar 2016 14:52:41 +0000
Subject: [PATCH 109/126] init_task: faster timerslack

the default tuning is a compromise between client power and server
performance;
for a server distro like Clear Linux, we don't need to compromise.
(for non-server usages we have different kernel binaries)

in principle this can be done as a patch to systemd as well, but we have
a shared
systemd between usages while we have different kernels, so the logistics
for where the patch goes work out better here
---
 include/linux/init_task.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index 8062e6cc607c..2903519e2462 100644
--- a/include/linux/init_task.h
+++ b/include/linux/init_task.h
@@ -275,7 +275,7 @@ extern struct cred init_cred;
 	.journal_info	= NULL,						\
 	INIT_CPU_TIMERS(tsk)						\
 	.pi_lock	= __RAW_SPIN_LOCK_UNLOCKED(tsk.pi_lock),	\
-	.timer_slack_ns = 50000, /* 50 usec default slack */		\
+	.timer_slack_ns = 1000, /* 1 usec default slack */		\
 	.pids = {							\
 		[PIDTYPE_PID]  = INIT_PID_LINK(PIDTYPE_PID),		\
 		[PIDTYPE_PGID] = INIT_PID_LINK(PIDTYPE_PGID),		\
-- 
2.15.0