comparison src/os/linux/vm/os_linux.cpp @ 269:850fdf70db2b

Merge
author jmasa
date Mon, 28 Jul 2008 15:30:23 -0700
parents 1fdb98a17101 9d6a3a6891f8
children b7f01ad69d30
comparison
equal deleted inserted replaced
238:3df2fe7c4451 269:850fdf70db2b
2276 // sched_getcpu() should be in libc. 2276 // sched_getcpu() should be in libc.
2277 set_sched_getcpu(CAST_TO_FN_PTR(sched_getcpu_func_t, 2277 set_sched_getcpu(CAST_TO_FN_PTR(sched_getcpu_func_t,
2278 dlsym(RTLD_DEFAULT, "sched_getcpu"))); 2278 dlsym(RTLD_DEFAULT, "sched_getcpu")));
2279 2279
2280 if (sched_getcpu() != -1) { // Does it work? 2280 if (sched_getcpu() != -1) { // Does it work?
2281 void *handle = dlopen("libnuma.so", RTLD_LAZY); 2281 void *handle = dlopen("libnuma.so.1", RTLD_LAZY);
2282 if (handle != NULL) { 2282 if (handle != NULL) {
2283 set_numa_node_to_cpus(CAST_TO_FN_PTR(numa_node_to_cpus_func_t, 2283 set_numa_node_to_cpus(CAST_TO_FN_PTR(numa_node_to_cpus_func_t,
2284 dlsym(handle, "numa_node_to_cpus"))); 2284 dlsym(handle, "numa_node_to_cpus")));
2285 set_numa_max_node(CAST_TO_FN_PTR(numa_max_node_func_t, 2285 set_numa_max_node(CAST_TO_FN_PTR(numa_max_node_func_t,
2286 dlsym(handle, "numa_max_node"))); 2286 dlsym(handle, "numa_max_node")));