2019-05-27 08:55:01 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2008-01-29 14:27:30 +09:00
|
|
|
/*
|
2008-08-01 10:13:32 -07:00
|
|
|
* Definitions for measuring cputime on ia64 machines.
|
2008-01-29 14:27:30 +09:00
|
|
|
*
|
|
|
|
* Based on <asm-powerpc/cputime.h>.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007 FUJITSU LIMITED
|
|
|
|
* Copyright (C) 2007 Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
|
|
|
|
*
|
2012-07-25 07:56:04 +02:00
|
|
|
* If we have CONFIG_VIRT_CPU_ACCOUNTING_NATIVE, we measure cpu time in nsec.
|
2008-01-29 14:27:30 +09:00
|
|
|
* Otherwise we measure cpu time in jiffies using the generic definitions.
|
|
|
|
*/
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
#ifndef __IA64_CPUTIME_H
|
|
|
|
#define __IA64_CPUTIME_H
|
|
|
|
|
2017-01-31 04:09:51 +01:00
|
|
|
#ifdef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
|
2012-11-14 00:24:25 +01:00
|
|
|
extern void arch_vtime_task_switch(struct task_struct *tsk);
|
2012-07-25 07:56:04 +02:00
|
|
|
#endif /* CONFIG_VIRT_CPU_ACCOUNTING_NATIVE */
|
2013-01-15 13:25:07 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
#endif /* __IA64_CPUTIME_H */
|