Changeset 9236 in vbox for trunk/src/VBox/Runtime/r0drv/linux
- Timestamp:
- May 29, 2008 9:41:45 PM (17 years ago)
- Location:
- trunk/src/VBox/Runtime/r0drv/linux
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h
r8245 r9236 77 77 #include <linux/pagemap.h> 78 78 #include <linux/slab.h> 79 #include <linux/time.h> 79 80 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 7) 80 # include <linux/time.h>81 81 # include <linux/jiffies.h> 82 #endif 83 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 16) 84 # include <linux/ktime.h> 82 85 #endif 83 86 #include <linux/wait.h> … … 248 251 #endif 249 252 253 /** @def ONE_MSEC_IN_JIFFIES 254 * The number of jiffies that make up 1 millisecond. Must be at least 1! */ 255 #if HZ <= 1000 256 # define ONE_MSEC_IN_JIFFIES 1 257 #elif !(HZ % 1000) 258 # define ONE_MSEC_IN_JIFFIES (HZ / 1000) 259 #else 260 # define ONE_MSEC_IN_JIFFIES ((HZ + 999) / 1000) 261 # error "HZ is not a multiple of 1000, the GIP stuff won't work right!" 262 #endif 263 264 /** @def TICK_NSEC 265 * The time between ticks in nsec */ 266 #ifndef TICK_NSEC 267 # define TICK_NSEC (1000000UL / HZ) 268 #endif 269 250 270 /* 251 271 * Stop using the linux bool type.
Note:
See TracChangeset
for help on using the changeset viewer.