diff options
| author | Arunk Khandavalli <akhandav@codeaurora.org> | 2017-01-03 20:04:22 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-01-16 01:14:54 -0800 |
| commit | ac325829e2aae90f1207a6cb713ba7172a71fa10 (patch) | |
| tree | 0ca3039aba1a4e00020ee7e2c3a287d3664024cc /qdf/linux/src | |
| parent | 4a4846fc7757ac298c73a9c8050832297a31b13a (diff) | |
qcacmn: Get monotonic boottime from kernel in nano sec
qcacld-2.0 to qca-wifi-host-cmn propogation
Add support to get the boot time from kernel in nano seconds.
Change-Id: Iaa512248a5e56d77cff39da562e0c9ee4eaeeefd
CRs-Fixed: 1107219
Diffstat (limited to 'qdf/linux/src')
| -rw-r--r-- | qdf/linux/src/qdf_mc_timer.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/qdf/linux/src/qdf_mc_timer.c b/qdf/linux/src/qdf_mc_timer.c index 776354288baf..e64104515147 100644 --- a/qdf/linux/src/qdf_mc_timer.c +++ b/qdf/linux/src/qdf_mc_timer.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -690,6 +690,15 @@ unsigned long qdf_mc_timer_get_system_time(void) } EXPORT_SYMBOL(qdf_mc_timer_get_system_time); +s64 qdf_get_monotonic_boottime_ns(void) +{ + struct timespec ts; + + ktime_get_ts(&ts); + return timespec_to_ns(&ts); +} +EXPORT_SYMBOL(qdf_get_monotonic_boottime_ns); + /** * qdf_timer_module_deinit() - Deinitializes a QDF timer module. * |
