summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/cgroup/lib/include/cgroup_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/cgroup/lib/include/cgroup_util.h')
-rw-r--r--tools/testing/selftests/cgroup/lib/include/cgroup_util.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/testing/selftests/cgroup/lib/include/cgroup_util.h b/tools/testing/selftests/cgroup/lib/include/cgroup_util.h
index 567b1082974c..5d39c709ac7a 100644
--- a/tools/testing/selftests/cgroup/lib/include/cgroup_util.h
+++ b/tools/testing/selftests/cgroup/lib/include/cgroup_util.h
@@ -2,12 +2,14 @@
#include <stdbool.h>
#include <stdlib.h>
-#ifndef PAGE_SIZE
-#define PAGE_SIZE 4096
+#ifndef BUF_SIZE
+#define BUF_SIZE 4096
#endif
#define MB(x) (x << 20)
+#define GB(x) ((unsigned long long)(x) << 30)
+#define NSEC_PER_USEC 1000L
#define USEC_PER_SEC 1000000L
#define NSEC_PER_SEC 1000000000L