xref: /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/timestamp-default/mali_timestamp.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * Copyright (C) 2010-2011, 2013-2014, 2016-2017 ARM Limited. All rights reserved.
3  *
4  * This program is free software and is provided to you under the terms of the GNU General Public License version 2
5  * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
6  *
7  * A copy of the licence is included with the program, and can also be obtained from Free Software
8  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
9  */
10 
11 #ifndef __MALI_TIMESTAMP_H__
12 #define __MALI_TIMESTAMP_H__
13 
14 #include "mali_osk.h"
15 
_mali_timestamp_reset(void)16 MALI_STATIC_INLINE _mali_osk_errcode_t _mali_timestamp_reset(void)
17 {
18 	return _MALI_OSK_ERR_OK;
19 }
20 
_mali_timestamp_get(void)21 MALI_STATIC_INLINE u64 _mali_timestamp_get(void)
22 {
23 	return _mali_osk_boot_time_get_ns();
24 }
25 
26 #endif /* __MALI_TIMESTAMP_H__ */
27