2008-01-29 13:27:30 +08:00
|
|
|
/*
|
2008-08-02 01:13:32 +08:00
|
|
|
* Definitions for measuring cputime on ia64 machines.
|
2008-01-29 13:27:30 +08: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 13:56:04 +08:00
|
|
|
* If we have CONFIG_VIRT_CPU_ACCOUNTING_NATIVE, we measure cpu time in nsec.
|
2008-01-29 13:27:30 +08:00
|
|
|
* Otherwise we measure cpu time in jiffies using the generic definitions.
|
|
|
|
*/
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#ifndef __IA64_CPUTIME_H
|
|
|
|
#define __IA64_CPUTIME_H
|
|
|
|
|
2017-01-31 11:09:51 +08:00
|
|
|
#ifdef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
|
2012-11-14 07:24:25 +08:00
|
|
|
extern void arch_vtime_task_switch(struct task_struct *tsk);
|
2012-07-25 13:56:04 +08:00
|
|
|
#endif /* CONFIG_VIRT_CPU_ACCOUNTING_NATIVE */
|
2013-01-15 20:25:07 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif /* __IA64_CPUTIME_H */
|