mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 10:32:35 +00:00
s390: remove the last remnants of cputime_t
cputime_t was a core kernel type, removed by commits ed5c8c854f2b..b672592f0221. As explained in commitb672592f02
("sched/cputime: Remove generic asm headers"), the final cleanup is for the arch to provide cputime_to_nsec[s](). Commite53051e757
("s390/cputime: provide archicture specific cputime_to_nsecs") did that, but just didn't remove the then-unused cputime_to_usecs() and associated remnants. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com> Link: https://lore.kernel.org/r/20221006105635.115775-1-npiggin@gmail.com Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
parent
91d5364dc6
commit
df386f15b2
@ -11,21 +11,6 @@
|
|||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <asm/timex.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;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Convert cputime to nanoseconds.
|
* Convert cputime to nanoseconds.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user