xref: /OK3568_Linux_fs/kernel/arch/ia64/include/asm/cputime.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Definitions for measuring cputime on ia64 machines.
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Based on <asm-powerpc/cputime.h>.
6*4882a593Smuzhiyun  *
7*4882a593Smuzhiyun  * Copyright (C) 2007 FUJITSU LIMITED
8*4882a593Smuzhiyun  * Copyright (C) 2007 Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
9*4882a593Smuzhiyun  *
10*4882a593Smuzhiyun  * If we have CONFIG_VIRT_CPU_ACCOUNTING_NATIVE, we measure cpu time in nsec.
11*4882a593Smuzhiyun  * Otherwise we measure cpu time in jiffies using the generic definitions.
12*4882a593Smuzhiyun  */
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun #ifndef __IA64_CPUTIME_H
15*4882a593Smuzhiyun #define __IA64_CPUTIME_H
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun #ifdef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
18*4882a593Smuzhiyun extern void arch_vtime_task_switch(struct task_struct *tsk);
19*4882a593Smuzhiyun #endif /* CONFIG_VIRT_CPU_ACCOUNTING_NATIVE */
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun #endif /* __IA64_CPUTIME_H */
22