diff options
Diffstat (limited to 'test/cpp/qps/limit_cores.cc')
-rw-r--r-- | test/cpp/qps/limit_cores.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/cpp/qps/limit_cores.cc b/test/cpp/qps/limit_cores.cc index 1fb2d628f6..fad9a323af 100644 --- a/test/cpp/qps/limit_cores.cc +++ b/test/cpp/qps/limit_cores.cc @@ -37,15 +37,14 @@ #include <grpc/support/log.h> #include <grpc/support/port_platform.h> +namespace grpc { +namespace testing { + #ifdef GPR_CPU_LINUX #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <sched.h> - -namespace grpc { -namespace testing { - int LimitCores(const int* cores, int cores_size) { const int num_cores = gpr_cpu_num_cores(); int cores_set = 0; |