Changeset 33155 in vbox for trunk/src/VBox/Runtime/r0drv/linux
- Timestamp:
- Oct 15, 2010 12:07:44 PM (14 years ago)
- Location:
- trunk/src/VBox/Runtime/r0drv/linux
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/semevent-r0drv-linux.c
r33043 r33155 256 256 RT_EXPORT_SYMBOL(RTSemEventWaitExDebug); 257 257 258 259 RTDECL(uint32_t) RTSemEventGetResolution(void) 260 { 261 return rtR0SemLnxWaitGetResolution(); 262 } 263 RT_EXPORT_SYMBOL(RTSemEventGetResolution); 264 -
trunk/src/VBox/Runtime/r0drv/linux/semeventmulti-r0drv-linux.c
r33043 r33155 321 321 RT_EXPORT_SYMBOL(RTSemEventMultiWaitExDebug); 322 322 323 324 RTDECL(uint32_t) RTSemEventMultiGetResolution(void) 325 { 326 return rtR0SemLnxWaitGetResolution(); 327 } 328 RT_EXPORT_SYMBOL(RTSemEventMultiGetResolution); 329 -
trunk/src/VBox/Runtime/r0drv/linux/waitqueue-r0drv-linux.h
r33019 r33155 35 35 #include <iprt/string.h> 36 36 #include <iprt/time.h> 37 38 /** The resolution (nanoseconds) specified when using 39 * schedule_hrtimeout_range. */ 40 #define RTR0SEMLNXWAIT_RESOLUTION 50000 37 41 38 42 … … 213 217 else if (pWait->fHighRes) 214 218 { 215 int rc = schedule_hrtimeout (&pWait->u.KtTimeout, HRTIMER_MODE_ABS);219 int rc = schedule_hrtimeout_range(&pWait->u.KtTimeout, HRTIMER_MODE_ABS, RTR0SEMLNXWAIT_RESOLUTION); 216 220 if (!rc) 217 221 pWait->fTimedOut = true; … … 265 269 266 270 267 #endif 268 271 /** 272 * Gets the max resolution of the timeout machinery. 273 * 274 * @returns Resolution specified in nanoseconds. 275 */ 276 DECLINLINE(uint32_t) rtR0SemLnxWaitGetResolution(void) 277 { 278 #ifdef IPRT_LINUX_HAS_HRTIMER 279 return RTR0SEMLNXWAIT_RESOLUTION; 280 #else 281 return 1000000000 / HZ; /* ns */ 282 #endif 283 } 284 285 #endif 286
Note:
See TracChangeset
for help on using the changeset viewer.