From 68ac0d05a97f43ad2ded5667c4c499f07def6728 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 17 Nov 2017 13:02:14 +0100 Subject: [PATCH] =?UTF-8?q?cgroup:=20move=20cgroup=20controller=20names=20?= =?UTF-8?q?def.h=20=E2=86=92=20cgroup-util.h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These definitions are clearly cgroup specific, hence let's move them out of def.h --- src/basic/cgroup-util.h | 4 ++++ src/basic/def.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/basic/cgroup-util.h b/src/basic/cgroup-util.h index c9666075ecc..df3d01e4eff 100644 --- a/src/basic/cgroup-util.h +++ b/src/basic/cgroup-util.h @@ -32,6 +32,10 @@ #include "macro.h" #include "set.h" +#define SYSTEMD_CGROUP_CONTROLLER_LEGACY "name=systemd" +#define SYSTEMD_CGROUP_CONTROLLER_HYBRID "name=unified" +#define SYSTEMD_CGROUP_CONTROLLER "_systemd" + /* An enum of well known cgroup controllers */ typedef enum CGroupController { CGROUP_CONTROLLER_CPU, diff --git a/src/basic/def.h b/src/basic/def.h index b0bd1dfa1cb..77ab735aedb 100644 --- a/src/basic/def.h +++ b/src/basic/def.h @@ -37,10 +37,6 @@ /* The default value for the net.unix.max_dgram_qlen sysctl */ #define DEFAULT_UNIX_MAX_DGRAM_QLEN 512UL -#define SYSTEMD_CGROUP_CONTROLLER_LEGACY "name=systemd" -#define SYSTEMD_CGROUP_CONTROLLER_HYBRID "name=unified" -#define SYSTEMD_CGROUP_CONTROLLER "_systemd" - #define SIGNALS_CRASH_HANDLER SIGSEGV,SIGILL,SIGFPE,SIGBUS,SIGQUIT,SIGABRT #define SIGNALS_IGNORE SIGPIPE