diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2011-06-02 16:12:13 -0400 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2011-06-02 16:12:13 -0400 |
commit | 46e1995ef071f61cd1e21e61857c7ce66cac2022 (patch) | |
tree | 04d28ecbc954dfd962f7ec033660aba874d54561 /src | |
parent | ed2742a29674222173147b73f223bc7be01e1eaf (diff) |
LibLitmus2010 changes to support klitirqd and Nvidia GPUs. Changes mostly related to k-FMLP.wip-pai
Diffstat (limited to 'src')
-rw-r--r-- | src/syscalls.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/syscalls.c b/src/syscalls.c index d800141..b0fee23 100644 --- a/src/syscalls.c +++ b/src/syscalls.c | |||
@@ -88,3 +88,13 @@ int null_call(cycles_t *timestamp) | |||
88 | { | 88 | { |
89 | return syscall(__NR_null_call, timestamp); | 89 | return syscall(__NR_null_call, timestamp); |
90 | } | 90 | } |
91 | |||
92 | int register_nv_device(int nv_device_id) | ||
93 | { | ||
94 | return syscall(__NR_register_nv_device, nv_device_id, 1); | ||
95 | } | ||
96 | |||
97 | int unregister_nv_device(int nv_device_id) | ||
98 | { | ||
99 | return syscall(__NR_register_nv_device, nv_device_id, 0); | ||
100 | } | ||