cregit-Linux how code gets into the kernel

Release 4.14 arch/s390/include/asm/cputime.h

/* 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

PersonTokensPropCommitsCommitProp
Martin Schwidefsky1593.75%375.00%
Michael Holzheu16.25%125.00%
Total16100.00%4100.00%

/* * Convert cputime to nanoseconds. */ #define cputime_to_nsecs(cputime) tod_to_ns(cputime) u64 arch_cpu_idle_time(int cpu); #define arch_idle_time(cpu) arch_cpu_idle_time(cpu) #endif /* _S390_CPUTIME_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Martin Schwidefsky5369.74%1062.50%
Rik Van Riel1114.47%16.25%
Frédéric Weisbecker911.84%212.50%
Greg Kroah-Hartman11.32%16.25%
Heiko Carstens11.32%16.25%
Michael Holzheu11.32%16.25%
Total76100.00%16100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.