summaryrefstree
path: root/kernel/drivers/vision/npu/npu-util-common.c
blob: e5a824a745dad65dc4120d4f91bd81ed46b14eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Samsung Exynos SoC series NPU driver
 *
 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
 *              http://www.samsung.com/
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */

#include <linux/ktime.h>

/*
 * Time calculation
 */
inline s64 npu_get_time_ns(void)
{
	return ktime_to_ns(ktime_get_boottime());
}