diff options
author | Borislav Petkov <[email protected]> | 2011-02-14 18:14:51 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2011-02-15 03:03:19 +0100 |
commit | 9e81509efc4fefcdd75cc6a4121672fa71ae8745 (patch) | |
tree | 49326656ff61876e62cda0712b41ef99643af5cd /tools/perf/util/trace-event-scripting.c | |
parent | 691269f0d918cd72454c254f97722f194c07b9a8 (diff) |
x86, amd: Initialize variable properly
Commit d518573de63f ("x86, amd: Normalize compute unit IDs on
multi-node processors") introduced compute unit normalization
but causes a compiler warning:
arch/x86/kernel/cpu/amd.c: In function 'amd_detect_cmp':
arch/x86/kernel/cpu/amd.c:268: warning: 'cores_per_cu' may be used uninitialized in this function
arch/x86/kernel/cpu/amd.c:268: note: 'cores_per_cu' was declared here
The compiler is right - initialize it with a proper value.
Also, fix up a comment while at it.
Reported-by: Andrew Morton <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Cc: Andreas Herrmann <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions