kernel_optimize_test/arch
Stephane Eranian 9f7ff8931e perf/x86: Fix RAPL rdmsrl_safe() usage
This patch fixes a bug introduced by:

  2422365780 ("perf/x86/intel: Use rdmsrl_safe() when initializing RAPL PMU")

The rdmsrl_safe() function returns 0 on success.
The current code was failing to detect the RAPL PMU
on real hardware  (missing /sys/devices/power) because
the return value of rdmsrl_safe() was misinterpreted.

Signed-off-by: Stephane Eranian <eranian@google.com>
Acked-by: Borislav Petkov <bp@suse.de>
Acked-by: Venkatesh Srinivas <venkateshs@google.com>
Cc: peterz@infradead.org
Cc: zheng.z.yan@intel.com
Link: http://lkml.kernel.org/r/20140423170418.GA12767@quad
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2014-04-24 08:12:41 +02:00
..
alpha
arc
arm Shiraz has moved 2014-04-18 16:40:08 -07:00
arm64
avr32
blackfin
c6x
cris
frv
hexagon
ia64
m32r
m68k
metag
microblaze
mips mips: export flush_icache_range 2014-04-18 16:40:09 -07:00
mn10300
openrisc
parisc
powerpc powerpc/mm: fix ".__node_distance" undefined 2014-04-18 16:40:08 -07:00
s390
score
sh
sparc
tile
um um: Memory corruption on startup 2014-04-20 23:57:21 +02:00
unicore32
x86 perf/x86: Fix RAPL rdmsrl_safe() usage 2014-04-24 08:12:41 +02:00
xtensa
.gitignore
Kconfig