]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mac80211: Use ktime_get_ts()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 11 Jun 2014 23:59:14 +0000 (23:59 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 23 Jun 2014 12:22:18 +0000 (14:22 +0200)
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>
net/mac80211/debugfs_sta.c
net/mac80211/sta_info.c

index ee82e1f0a9e7296c180f07ba345281d028d82ef0..3db96648b45a02c0e0235b724210a15ba32747b7 100644 (file)
@@ -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;
index 6fe48f64d0e471759cdb7258021e8e54be6d78ad..f41177f58b30c483f95596bc3e9d5acf90b00512 100644 (file)
@@ -350,7 +350,7 @@ struct sta_info *sta_info_alloc(struct ieee80211_sub_if_data *sdata,
 
        sta->sta_state = IEEE80211_STA_NONE;
 
-       do_posix_clock_monotonic_gettime(&uptime);
+       ktime_get_ts(&uptime);
        sta->last_connected = uptime.tv_sec;
        ewma_init(&sta->avg_signal, 1024, 8);
        for (i = 0; i < ARRAY_SIZE(sta->chain_signal_avg); i++)
@@ -1747,7 +1747,7 @@ void sta_set_sinfo(struct sta_info *sta, struct station_info *sinfo)
                        STATION_INFO_STA_FLAGS |
                        STATION_INFO_BEACON_LOSS_COUNT;
 
-       do_posix_clock_monotonic_gettime(&uptime);
+       ktime_get_ts(&uptime);
        sinfo->connected_time = uptime.tv_sec - sta->last_connected;
 
        sinfo->inactive_time = jiffies_to_msecs(jiffies - sta->last_rx);