From: Baruch Siach Date: Wed, 17 Jul 2013 09:46:53 +0000 (+0300) Subject: sched_clock: Fix integer overflow X-Git-Tag: v3.11-rc7~28^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53c035204253efe373d9ff166fae6147e8c693b6;p=pandora-kernel.git sched_clock: Fix integer overflow The expression '(1 << 32)' happens to evaluate as 0 on ARM, but it evaluates as 1 on xtensa and x86_64. This zeros sched_clock_mask, and breaks sched_clock(). Set the type of 1 to 'unsigned long long' to get the value we need. Reported-by: Max Filippov Tested-by: Max Filippov Acked-by: Russell King Signed-off-by: Baruch Siach Signed-off-by: John Stultz --- Reading git-diff-tree failed