]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/main.c
util: refactor cpu_set parsing into its own function
authorFilipe Brandenburger <filbranden@google.com>
Fri, 25 Sep 2015 00:58:49 +0000 (17:58 -0700)
committerFilipe Brandenburger <filbranden@google.com>
Fri, 25 Sep 2015 01:01:36 +0000 (18:01 -0700)
commitf5c72b739e3252fda11936483ba93963895c4bf2
tree94cdfde6212c0045564f767e9db5b6a96fc06ef1
parenteb1d47c06d7d00fb0512279c950311f528ecf5b7
util: refactor cpu_set parsing into its own function

Use the new code in config_parse_cpu_affinity2.

Tested by modifying CPUAffinity=... setting in /etc/systemd/system.conf
and reloading the daemon, then checking ^Cpus_allowed in /proc/1/status
to confirm the correct CPU mask is in place.
src/basic/util.c
src/basic/util.h
src/core/main.c