blob: e2d3f5baf265408b49a201e8fa07e3b3b24fe939 [file] [log] [blame]
Hidetoshi Setob64f34c2008-01-29 14:27:30 +09001/*
Tony Luck7f304912008-08-01 10:13:32 -07002 * Definitions for measuring cputime on ia64 machines.
Hidetoshi Setob64f34c2008-01-29 14:27:30 +09003 *
4 * Based on <asm-powerpc/cputime.h>.
5 *
6 * Copyright (C) 2007 FUJITSU LIMITED
7 * Copyright (C) 2007 Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version
12 * 2 of the License, or (at your option) any later version.
13 *
Frederic Weisbeckerabf917c2012-07-25 07:56:04 +020014 * If we have CONFIG_VIRT_CPU_ACCOUNTING_NATIVE, we measure cpu time in nsec.
Hidetoshi Setob64f34c2008-01-29 14:27:30 +090015 * Otherwise we measure cpu time in jiffies using the generic definitions.
16 */
17
Linus Torvalds1da177e2005-04-16 15:20:36 -070018#ifndef __IA64_CPUTIME_H
19#define __IA64_CPUTIME_H
20
Frederic Weisbeckerabf917c2012-07-25 07:56:04 +020021#ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
Frederic Weisbecker39613762013-01-15 13:25:07 +010022# include <asm-generic/cputime.h>
Hidetoshi Setob64f34c2008-01-29 14:27:30 +090023#else
Frederic Weisbecker39613762013-01-15 13:25:07 +010024# include <asm/processor.h>
25# include <asm-generic/cputime_nsecs.h>
Frederic Weisbeckere3942ba2012-11-14 00:24:25 +010026extern void arch_vtime_task_switch(struct task_struct *tsk);
Frederic Weisbeckerabf917c2012-07-25 07:56:04 +020027#endif /* CONFIG_VIRT_CPU_ACCOUNTING_NATIVE */
Frederic Weisbecker39613762013-01-15 13:25:07 +010028
Linus Torvalds1da177e2005-04-16 15:20:36 -070029#endif /* __IA64_CPUTIME_H */