|
@@ -1211,22 +1211,6 @@ int get_device_system_crosststamp(int (*get_time_fn)
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(get_device_system_crosststamp);
|
|
EXPORT_SYMBOL_GPL(get_device_system_crosststamp);
|
|
|
|
|
|
-/**
|
|
|
|
- * do_gettimeofday - Returns the time of day in a timeval
|
|
|
|
- * @tv: pointer to the timeval to be set
|
|
|
|
- *
|
|
|
|
- * NOTE: Users should be converted to using getnstimeofday()
|
|
|
|
- */
|
|
|
|
-void do_gettimeofday(struct timeval *tv)
|
|
|
|
-{
|
|
|
|
- struct timespec64 now;
|
|
|
|
-
|
|
|
|
- getnstimeofday64(&now);
|
|
|
|
- tv->tv_sec = now.tv_sec;
|
|
|
|
- tv->tv_usec = now.tv_nsec/1000;
|
|
|
|
-}
|
|
|
|
-EXPORT_SYMBOL(do_gettimeofday);
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* do_settimeofday64 - Sets the time of day.
|
|
* do_settimeofday64 - Sets the time of day.
|
|
* @ts: pointer to the timespec64 variable containing the new time
|
|
* @ts: pointer to the timespec64 variable containing the new time
|
|
@@ -2174,14 +2158,6 @@ void getboottime64(struct timespec64 *ts)
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(getboottime64);
|
|
EXPORT_SYMBOL_GPL(getboottime64);
|
|
|
|
|
|
-unsigned long get_seconds(void)
|
|
|
|
-{
|
|
|
|
- struct timekeeper *tk = &tk_core.timekeeper;
|
|
|
|
-
|
|
|
|
- return tk->xtime_sec;
|
|
|
|
-}
|
|
|
|
-EXPORT_SYMBOL(get_seconds);
|
|
|
|
-
|
|
|
|
void ktime_get_coarse_real_ts64(struct timespec64 *ts)
|
|
void ktime_get_coarse_real_ts64(struct timespec64 *ts)
|
|
{
|
|
{
|
|
struct timekeeper *tk = &tk_core.timekeeper;
|
|
struct timekeeper *tk = &tk_core.timekeeper;
|