x86/oprofile: Fix cast of counter value
authorRobert Richter <robert.richter@amd.com>
Tue, 7 Jul 2009 17:30:25 +0000 (19:30 +0200)
committerRobert Richter <robert.richter@amd.com>
Tue, 14 Jul 2009 13:30:03 +0000 (15:30 +0200)
commit8045a4c293d36c61656a20d581b11f7f0cd7acd5
tree33d201b0916c44a3cf952f96d9fee10b7b6f857b
parentdebc6a6927dcd833a30750b07a4c2b456b71f1be
x86/oprofile: Fix cast of counter value

When casting the counter value to a 64 bit value in 32 bit mode, sign
extension may lead to broken counter values. This patch fixes this by
casting to (u64) instead of (s64).

Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/x86/oprofile/op_model_amd.c
arch/x86/oprofile/op_model_p4.c