diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-05-28 21:38:41 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-05-29 10:29:28 +0200 |
commit | 167a776dbe9d033523bd6881e5a695f2155dc321 (patch) | |
tree | 34cdc15be5e1ff66c745a2aafb47bdd1f9cfff84 /src/shared/cpu-set-util.h | |
parent | fb39af4ce42d7ef9af63009f271f404038703704 (diff) | |
download | systemd-167a776dbe9d033523bd6881e5a695f2155dc321.tar.gz |
test-execute: use CPUSet too
cpu_set_malloc() was the last user. It doesn't seem useful to keep
it just to save the allocation of a few hundred bytes in a test, so
it is dropped and a fixed maximum is allocated (1024 bytes).
Diffstat (limited to 'src/shared/cpu-set-util.h')
-rw-r--r-- | src/shared/cpu-set-util.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/cpu-set-util.h b/src/shared/cpu-set-util.h index 602c983ae3..fc1aa6b63a 100644 --- a/src/shared/cpu-set-util.h +++ b/src/shared/cpu-set-util.h @@ -8,8 +8,6 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(cpu_set_t*, CPU_FREE); #define _cleanup_cpu_free_ _cleanup_(CPU_FREEp) -cpu_set_t* cpu_set_malloc(unsigned *ncpus); - /* This wraps the libc interface with a variable to keep the allocated size. */ typedef struct CPUSet { cpu_set_t *set; @@ -26,6 +24,7 @@ static inline void cpu_set_reset(CPUSet *a) { int cpu_set_add_all(CPUSet *a, const CPUSet *b); char* cpu_set_to_string(const CPUSet *a); +int cpu_set_realloc(CPUSet *cpu_set, unsigned ncpus); int parse_cpu_set_full( const char *rvalue, CPUSet *cpu_set, |