/* * Definitions for measuring cputime on powerpc machines. * * Copyright (C) 2006 Paul Mackerras, IBM Corp. * * 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. * * If we have CONFIG_VIRT_CPU_ACCOUNTING_NATIVE, we measure cpu time in * the same units as the timebase. Otherwise we measure cpu time * in jiffies using the generic definitions. */ #ifndef __POWERPC_CPUTIME_H #define __POWERPC_CPUTIME_H #ifdef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE #include <linux/types.h> #include <linux/time.h> #include <asm/div64.h> #include <asm/time.h> #include <asm/param.h> #include <asm/cpu_has_feature.h> typedef u64 __nocast cputime_t; typedef u64 __nocast cputime64_t; #define cmpxchg_cputime(ptr, old, new) cmpxchg(ptr, old, new) #ifdef __KERNEL__ /* * Convert cputime <-> microseconds */ extern u64 __cputime_usec_factor;
static inline unsigned long cputime_to_usecs(const cputime_t ct) { return mulhdu((__force u64) ct, __cputime_usec_factor); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Mackerras | 18 | 75.00% | 1 | 25.00% |
Martin Schwidefsky | 4 | 16.67% | 1 | 25.00% |
Michael Holzheu | 1 | 4.17% | 1 | 25.00% |
Andreas Schwab | 1 | 4.17% | 1 | 25.00% |
Total | 24 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Frédéric Weisbecker | 11 | 100.00% | 1 | 100.00% |
Total | 11 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Paul Mackerras | 61 | 51.69% | 1 | 10.00% |
Christophe Leroy | 17 | 14.41% | 1 | 10.00% |
Frédéric Weisbecker | 16 | 13.56% | 3 | 30.00% |
Rik Van Riel | 11 | 9.32% | 1 | 10.00% |
Martin Schwidefsky | 6 | 5.08% | 1 | 10.00% |
Kevin Hao | 3 | 2.54% | 1 | 10.00% |
Michael Holzheu | 2 | 1.69% | 1 | 10.00% |
Andreas Schwab | 2 | 1.69% | 1 | 10.00% |
Total | 118 | 100.00% | 10 | 100.00% |