mac80211: Use ktime_get_ts()
do_posix_clock_monotonic_gettime() is a leftover from the initial posix timer implementation which maps to ktime_get_ts(). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:

committed by
Johannes Berg

parent
10d78f2782
commit
181715203b
@@ -124,7 +124,7 @@ static ssize_t sta_connected_time_read(struct file *file, char __user *userbuf,
|
||||
long connected_time_secs;
|
||||
char buf[100];
|
||||
int res;
|
||||
do_posix_clock_monotonic_gettime(&uptime);
|
||||
ktime_get_ts(&uptime);
|
||||
connected_time_secs = uptime.tv_sec - sta->last_connected;
|
||||
time_to_tm(connected_time_secs, 0, &result);
|
||||
result.tm_year -= 70;
|
||||
|
Reference in New Issue
Block a user