Permalink
Browse files

Revert "Merge 'eugeneia/numa-selftest-nonnuma' into wingo-next"

This reverts commit 3120d7c, reversing
changes made to bb935c7.
  • Loading branch information...
lukego committed Jun 26, 2018
1 parent e22e683 commit cf4a5dcafea4003858a51ca59a2976d5c148ee62
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/lib/numa.lua
View
@@ -109,7 +109,6 @@ function unbind_numa_node ()
end
function bind_to_numa_node (node)
if not has_numa() then return end
if node == bound_numa_node then return end
if not node then return unbind_numa_node() end
assert(not bound_numa_node, "already bound")
@@ -136,11 +135,11 @@ function selftest ()
assert(bound_cpu == cpu)
assert(bound_numa_node == node)
assert(S.getcpu().cpu == cpu)
assert(not has_numa() or S.getcpu().node == node)
assert(S.getcpu().node == node)
bind_to_cpu(nil)
assert(bound_cpu == nil)
assert(bound_numa_node == node)
assert(not has_numa() or S.getcpu().node == node)
assert(S.getcpu().node == node)
bind_to_numa_node(nil)
assert(bound_cpu == nil)
assert(bound_numa_node == nil)

0 comments on commit cf4a5dc

Please sign in to comment.