summaryrefslogtreecommitdiffstats
path: root/kernel/events/core.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2016-02-16 20:19:19 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-02-17 00:28:15 +0100
commit3b99669b75db04e411bb298591224a9e8e4f57fb (patch)
tree3b8ad250613dbb92a056d8fc6024ff2ef9263da9 /kernel/events/core.c
parentcpuidle: menu: avoid expensive square root computation (diff)
downloadlinux-3b99669b75db04e411bb298591224a9e8e4f57fb.tar.xz
linux-3b99669b75db04e411bb298591224a9e8e4f57fb.zip
cpuidle: menu: help gcc generate slightly better code
We know that the avg variable actually ends up holding a 32 bit quantity, since it's an average of such numbers. It is only a u64 because it is temporarily used to hold the sum. Making it an actual u32 allows gcc to generate slightly better code, e.g. when computing the square, it can do a 32x32->64 multiply. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/events/core.c')
0 files changed, 0 insertions, 0 deletions