Skip to content

Commit

Permalink
ljsyscall: Fix getcpu()
Browse files Browse the repository at this point in the history
Patch by Katerina Barone-Adesi <kbarone@igalia.com>, committed upstream
via justincormack/ljsyscall#195.
  • Loading branch information
wingo committed Jun 2, 2016
1 parent e062328 commit d9390f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ljsyscall/syscall/linux/c.lua
Expand Up @@ -691,7 +691,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 d9390f3

Please sign in to comment.