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