Linux Audio

Check our new training course

Loading...
v3.15
 
 1/*
 2 * Definitions for measuring cputime on ia64 machines.
 3 *
 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 *
14 * If we have CONFIG_VIRT_CPU_ACCOUNTING_NATIVE, we measure cpu time in nsec.
15 * Otherwise we measure cpu time in jiffies using the generic definitions.
16 */
17
18#ifndef __IA64_CPUTIME_H
19#define __IA64_CPUTIME_H
20
21#ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
22# include <asm-generic/cputime.h>
23#else
24# include <asm/processor.h>
25# include <asm-generic/cputime_nsecs.h>
26extern void arch_vtime_task_switch(struct task_struct *tsk);
27#endif /* CONFIG_VIRT_CPU_ACCOUNTING_NATIVE */
28
29#endif /* __IA64_CPUTIME_H */
v5.4
 1/* SPDX-License-Identifier: GPL-2.0-or-later */
 2/*
 3 * Definitions for measuring cputime on ia64 machines.
 4 *
 5 * Based on <asm-powerpc/cputime.h>.
 6 *
 7 * Copyright (C) 2007 FUJITSU LIMITED
 8 * Copyright (C) 2007 Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
 9 *
 
 
 
 
 
10 * If we have CONFIG_VIRT_CPU_ACCOUNTING_NATIVE, we measure cpu time in nsec.
11 * Otherwise we measure cpu time in jiffies using the generic definitions.
12 */
13
14#ifndef __IA64_CPUTIME_H
15#define __IA64_CPUTIME_H
16
17#ifdef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
 
 
 
 
18extern void arch_vtime_task_switch(struct task_struct *tsk);
19#endif /* CONFIG_VIRT_CPU_ACCOUNTING_NATIVE */
20
21#endif /* __IA64_CPUTIME_H */