chiark / gitweb /
Prep v239: Unmask cg_weight_parse()
authorSven Eden <yamakuzure@gmx.net>
Thu, 23 Aug 2018 16:37:16 +0000 (18:37 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
src/basic/cgroup-util.c
src/basic/cgroup-util.h

index dd2f3e86621f6f8ec4040b09a8fd5246613410e3..42395aae5deee34755facaf076e6166db2d94040 100644 (file)
@@ -2812,7 +2812,6 @@ bool cg_is_hybrid_wanted(void) {
 #endif // 0
 }
 
-#if 0 /// UNNEEDED by elogind
 int cg_weight_parse(const char *s, uint64_t *ret) {
         uint64_t u;
         int r;
@@ -2833,6 +2832,7 @@ int cg_weight_parse(const char *s, uint64_t *ret) {
         return 0;
 }
 
+#if 0 /// UNNEEDED by elogind
 const uint64_t cgroup_io_limit_defaults[_CGROUP_IO_LIMIT_TYPE_MAX] = {
         [CGROUP_IO_RBPS_MAX]    = CGROUP_LIMIT_MAX,
         [CGROUP_IO_WBPS_MAX]    = CGROUP_LIMIT_MAX,
index 109e56c58e7398e72ad817e7c93bd4cc3ea859aa..25e634deacc21fd6bd2d9e4bcdb0d5d40c9ca9b6 100644 (file)
@@ -257,8 +257,8 @@ bool cg_is_hybrid_wanted(void);
 const char* cgroup_controller_to_string(CGroupController c) _const_;
 CGroupController cgroup_controller_from_string(const char *s) _pure_;
 
-#if 0 /// UNNEEDED by elogind
 int cg_weight_parse(const char *s, uint64_t *ret);
+#if 0 /// UNNEEDED by elogind
 int cg_cpu_shares_parse(const char *s, uint64_t *ret);
 int cg_blkio_weight_parse(const char *s, uint64_t *ret);
 #endif // 0