summaryrefslogtreecommitdiff
path: root/src/core/cgroup.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/cgroup.h')
-rw-r--r--src/core/cgroup.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/cgroup.h b/src/core/cgroup.h
index 8f7d19ad4f..0be985be60 100644
--- a/src/core/cgroup.h
+++ b/src/core/cgroup.h
@@ -16,8 +16,10 @@ typedef struct TasksMax {
uint64_t scale;
} TasksMax;
+#define TASKS_MAX_UNSET ((TasksMax) { UINT64_MAX })
+
static inline bool tasks_max_isset(const TasksMax *tasks_max) {
- return tasks_max->value != CGROUP_LIMIT_MAX || tasks_max->scale != 0;
+ return tasks_max->value != UINT64_MAX || tasks_max->scale != 0;
}
uint64_t tasks_max_scale(const TasksMax *tasks_max);