[0/1] sched/cputime: Mitigate performance regression in times()/clock_gettime()
mbox series

Message ID 1470385316-15027-1-git-send-email-ggherdovich@suse.cz
Headers show
Series
  • sched/cputime: Mitigate performance regression in times()/clock_gettime()
Related show

Message

Giovanni Gherdovich Aug. 5, 2016, 8:21 a.m. UTC
As per Peter Zijlstra's review, these are the difference wrt V1:

* inclusion of appropriate header file linux/prefetch.h
* factorized the calls to prefetch into a separate function
* introduction of the local variable curr as a form of compiler
  subexpression elimination (CSE)
* fixed Signed-off-by chain
* added comment as per why the prefetches are needed

Giovanni Gherdovich (1):
  sched/cputime: Mitigate performance regression in
    times()/clock_gettime()

 kernel/sched/core.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)