projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf tools: Fix SMT detection fast read path
[linux-2.6-microblaze.git]
/
tools
/
perf
/
util
/
smt.c
diff --git
a/tools/perf/util/smt.c
b/tools/perf/util/smt.c
index
20bacd5
..
34f1b1b
100644
(file)
--- a/
tools/perf/util/smt.c
+++ b/
tools/perf/util/smt.c
@@
-15,7
+15,7
@@
int smt_on(void)
if (cached)
return cached_result;
- if (sysfs__read_int("devices/system/cpu/smt/active", &cached_result) > 0)
+ if (sysfs__read_int("devices/system/cpu/smt/active", &cached_result) >
=
0)
goto done;
ncpu = sysconf(_SC_NPROCESSORS_CONF);