Skip to content

Commit

Permalink
Merge pull request snabbco#195 from kbara/fixgetcpu
Browse files Browse the repository at this point in the history
Fix getcpu: the cpu argument was incorrectly given the node variable
  • Loading branch information
justincormack committed May 26, 2016
2 parents 214550a + 4b2e0b2 commit a4217a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syscall/linux/c.lua
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ C.gettimeofday = ffi.C.gettimeofday
--function C.gettimeofday(tv, tz) return syscall(sys.gettimeofday, void(tv), void(tz)) end

-- glibc does not provide getcpu; it is however VDSO
function C.getcpu(cpu, node, tcache) return syscall(sys.getcpu, void(node), void(node), void(tcache)) end
function C.getcpu(cpu, node, tcache) return syscall(sys.getcpu, void(cpu), void(node), void(tcache)) end
-- time is VDSO but not really performance critical; does not exist for some architectures
if sys.time then
function C.time(t) return syscall(sys.time, void(t)) end
Expand Down

0 comments on commit a4217a8

Please sign in to comment.