/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp. 2004 * * Author: Martin Schwidefsky <schwidefsky@de.ibm.com> */ #ifndef _S390_CPUTIME_H #define _S390_CPUTIME_H #include <linux/types.h> #include <asm/timex.h> #define CPUTIME_PER_USEC 4096ULL #define CPUTIME_PER_SEC (CPUTIME_PER_USEC * USEC_PER_SEC) /* We want to use full resolution of the CPU timer: 2**-12 micro-seconds. */ #define cmpxchg_cputime(ptr, old, new) cmpxchg64(ptr, old, new) /* * Convert cputime to microseconds. */
static inline u64 cputime_to_usecs(const u64 cputime) { return cputime >> 12; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Martin Schwidefsky | 15 | 93.75% | 3 | 75.00% |
Michael Holzheu | 1 | 6.25% | 1 | 25.00% |
Total | 16 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Martin Schwidefsky | 53 | 69.74% | 10 | 62.50% |
Rik Van Riel | 11 | 14.47% | 1 | 6.25% |
Frédéric Weisbecker | 9 | 11.84% | 2 | 12.50% |
Greg Kroah-Hartman | 1 | 1.32% | 1 | 6.25% |
Heiko Carstens | 1 | 1.32% | 1 | 6.25% |
Michael Holzheu | 1 | 1.32% | 1 | 6.25% |
Total | 76 | 100.00% | 16 | 100.00% |