]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: use ktime_get_seconds
authorArnd Bergmann <arnd@arndb.de>
Wed, 30 Sep 2015 11:26:36 +0000 (13:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Oct 2015 10:16:45 +0000 (03:16 -0700)
commitb7789503b926bca1ec0fc1af9568dc752d85a763
tree4ae140cdf9cbc9026e9cd2987dea1bf29c3c57be
parent70abdb002332184afee19065f7be5ad449f66115
mac80211: use ktime_get_seconds

The mac80211 code uses ktime_get_ts to measure the connected time.
As this uses monotonic time, it is y2038 safe on 32-bit systems,
but we still want to deprecate the use of 'timespec' because most
other users are broken.

This changes the code to use ktime_get_seconds() instead, which
avoids the timespec structure and is slightly more efficient.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mac80211/sta_info.c