diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-01 13:16:10 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-01 13:16:10 -0400 |
| commit | a21e40877ad130de837b0394583e4f68dc2ab6c5 (patch) | |
| tree | c990fba6ef5f2ed464c906615c5c327f2d02b318 /include/linux | |
| parent | b9b16a792241e304834f43e2a5f02e6e43576f09 (diff) | |
| parent | 073d8224d299528778e90773becd1e890953443c (diff) | |
Merge branch 'timers-nohz-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer updates from Ingo Molnar:
"The main purpose is to fix a full dynticks bug related to
virtualization, where steal time accounting appears to be zero in
/proc/stat even after a few seconds of competing guests running busy
loops in a same host CPU. It's not a regression though as it was
there since the beginning.
The other commits are preparatory work to fix the bug and various
cleanups"
* 'timers-nohz-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
arch: Remove stub cputime.h headers
sched: Remove needless round trip nsecs <-> tick conversion of steal time
cputime: Fix jiffies based cputime assumption on steal accounting
cputime: Bring cputime -> nsecs conversion
cputime: Default implementation of nsecs -> cputime conversion
cputime: Fix nsecs_to_cputime() return type cast
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/cputime.h | 16 | ||||
| -rw-r--r-- | include/linux/kernel_stat.h | 2 | ||||
| -rw-r--r-- | include/linux/sched.h | 2 |
3 files changed, 18 insertions, 2 deletions
diff --git a/include/linux/cputime.h b/include/linux/cputime.h new file mode 100644 index 000000000000..f2eb2ee535ca --- /dev/null +++ b/include/linux/cputime.h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #ifndef __LINUX_CPUTIME_H | ||
| 2 | #define __LINUX_CPUTIME_H | ||
| 3 | |||
| 4 | #include <asm/cputime.h> | ||
| 5 | |||
| 6 | #ifndef cputime_to_nsecs | ||
| 7 | # define cputime_to_nsecs(__ct) \ | ||
| 8 | (cputime_to_usecs(__ct) * NSEC_PER_USEC) | ||
| 9 | #endif | ||
| 10 | |||
| 11 | #ifndef nsecs_to_cputime | ||
| 12 | # define nsecs_to_cputime(__nsecs) \ | ||
| 13 | usecs_to_cputime((__nsecs) / NSEC_PER_USEC) | ||
| 14 | #endif | ||
| 15 | |||
| 16 | #endif /* __LINUX_CPUTIME_H */ | ||
diff --git a/include/linux/kernel_stat.h b/include/linux/kernel_stat.h index 51c72be4a7c3..d7c61317db86 100644 --- a/include/linux/kernel_stat.h +++ b/include/linux/kernel_stat.h | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | #include <linux/sched.h> | 9 | #include <linux/sched.h> |
| 10 | #include <linux/vtime.h> | 10 | #include <linux/vtime.h> |
| 11 | #include <asm/irq.h> | 11 | #include <asm/irq.h> |
| 12 | #include <asm/cputime.h> | 12 | #include <linux/cputime.h> |
| 13 | 13 | ||
| 14 | /* | 14 | /* |
| 15 | * 'kernel_stat.h' contains the definitions needed for doing | 15 | * 'kernel_stat.h' contains the definitions needed for doing |
diff --git a/include/linux/sched.h b/include/linux/sched.h index 825ed838d4b9..c399ed826648 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -29,7 +29,7 @@ struct sched_param { | |||
| 29 | 29 | ||
| 30 | #include <asm/page.h> | 30 | #include <asm/page.h> |
| 31 | #include <asm/ptrace.h> | 31 | #include <asm/ptrace.h> |
| 32 | #include <asm/cputime.h> | 32 | #include <linux/cputime.h> |
| 33 | 33 | ||
| 34 | #include <linux/smp.h> | 34 | #include <linux/smp.h> |
| 35 | #include <linux/sem.h> | 35 | #include <linux/sem.h> |
