diff options
author | Adrian Calianu <adrian.calianu@enea.com> | 2017-05-22 08:43:50 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2017-05-23 14:58:35 +0200 |
commit | 16b0e3313f53566481c106ace9992e477f8efe9b (patch) | |
tree | 5ec03a62db7836d2fb59813cb0c912751556c378 /patches/boot_time_opt/0110-init_task-faster-timerslack.patch | |
parent | 28da254d1c5ae012a6e064671aa14850c2a21a25 (diff) | |
download | enea-kernel-cache-16b0e3313f53566481c106ace9992e477f8efe9b.tar.gz |
patches: Boot time optimizations with ClearLinux patches
Signed-off-by: Adrian Calianu <adrian.calianu@enea.com>
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
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 | |||