corecode's projects
/
nvidia.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
89c0202
)
adjust after recent sleep lock function renaming
author
Simon Schubert <simon.schubert@epfl.ch>
Tue, 25 Aug 2009 15:23:58 +0000 (17:23 +0200)
committer
Simon Schubert <simon.schubert@epfl.ch>
Tue, 25 Aug 2009 15:23:58 +0000 (17:23 +0200)
src/nvidia_os.c
patch
|
blob
|
blame
|
history
diff --git
a/src/nvidia_os.c
b/src/nvidia_os.c
index
84853cf
..
51981bf
100644
(file)
--- a/
src/nvidia_os.c
+++ b/
src/nvidia_os.c
@@
-633,7
+633,11
@@
RM_STATUS NV_API_CALL os_acquire_sema(void *semaphore)
rm_disable_interrupts(mtx->sp);
mtx->refcnt--;
if (mtx->refcnt < 0)
+#if __DragonFly_version < 200206
msleep(mtx, &mtx->lock, 0, "nvsemaq", 0);
+#else
+ ssleep(mtx, &mtx->lock, 0, "nvsemaq", 0);
+#endif
spin_unlock_wr(&mtx->lock);
return RM_OK;