VirtualBox

Changeset 9239 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 29, 2008 10:22:32 PM (17 years ago)
Author:
vboxsync
Message:

Use ktime_get_real_ts() instead of ktime_get_real() as the latter appeared in 2.6.21 while the former was there in 2.6.16 already.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/time-r0drv-linux.c

    r9237 r9239  
    170170{
    171171#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 16)
    172     ktime_t Kt = ktime_get_real();
    173     struct timespec Ts = ktime_to_timespec(Kt);
     172    struct timespec Ts;
     173    ktime_get_real_ts(&Ts);
    174174    return RTTimeSpecSetTimespec(pTime, &Ts);
    175175
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette