From: Paul Mundt Date: Thu, 5 Nov 2009 08:13:15 +0000 (+0900) Subject: sh: oprofile: Fix up count size mismatch for common impl. X-Git-Tag: firefly_0821_release~9833^2~3643^2~62^2~9 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e9c4148fd4f03008ecbe3b673e25764232a15503;p=firefly-linux-kernel-4.4.55.git sh: oprofile: Fix up count size mismatch for common impl. This reduces the 'count' size in the common support structure to 32-bits so that it matches up with what oprofile is expecting. The SH7750 code was using a nasty oprofilefs hack to expose the 48-bit counter, although no other implementations were. Now that the offending driver has been killed off, it's possible to restore some semblance of sanity. Signed-off-by: Paul Mundt --- diff --git a/arch/sh/oprofile/op_impl.h b/arch/sh/oprofile/op_impl.h index 4d509975eba6..1244479ceb29 100644 --- a/arch/sh/oprofile/op_impl.h +++ b/arch/sh/oprofile/op_impl.h @@ -6,7 +6,7 @@ struct op_counter_config { unsigned long enabled; unsigned long event; - unsigned long long count; + unsigned long count; /* Dummy values for userspace tool compliance */ unsigned long kernel;