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