teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0289-core-disable-CPUAccounting-by-default.patch

b9a53a
From b47f26558e5234ec8cf2ecc3674c94a87f20ec69 Mon Sep 17 00:00:00 2001
b9a53a
From: =?UTF-8?q?Michal=20Sekleta=CC=81r?= <msekleta@redhat.com>
b9a53a
Date: Thu, 28 Nov 2019 15:47:43 +0100
b9a53a
Subject: [PATCH] core: disable CPUAccounting by default
b9a53a
b9a53a
Related: #1734787
b9a53a
b9a53a
[RHEL-only]
b9a53a
---
b9a53a
 src/core/main.c | 2 +-
b9a53a
 1 file changed, 1 insertion(+), 1 deletion(-)
b9a53a
b9a53a
diff --git a/src/core/main.c b/src/core/main.c
b9a53a
index 83f9dd5878..c83249a8dc 100644
b9a53a
--- a/src/core/main.c
b9a53a
+++ b/src/core/main.c
b9a53a
@@ -2026,7 +2026,7 @@ static void reset_arguments(void) {
b9a53a
 
b9a53a
         /* arg_serialization — ignore */
b9a53a
 
b9a53a
-        arg_default_cpu_accounting = -1;
b9a53a
+        arg_default_cpu_accounting = 0;
b9a53a
         arg_default_io_accounting = false;
b9a53a
         arg_default_ip_accounting = false;
b9a53a
         arg_default_blockio_accounting = false;