blob: 3d665c0627a86606a60f533192f9bb52ec10f698 [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 Weisbeckerb6725922017-01-31 04:09:51 +010021#ifdef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
Frederic Weisbeckere3942ba2012-11-14 00:24:25 +010022extern void arch_vtime_task_switch(struct task_struct *tsk);
Frederic Weisbeckerabf917c2012-07-25 07:56:04 +020023#endif /* CONFIG_VIRT_CPU_ACCOUNTING_NATIVE */
Frederic Weisbecker39613762013-01-15 13:25:07 +010024
Linus Torvalds1da177e2005-04-16 15:20:36 -070025#endif /* __IA64_CPUTIME_H */