From: James Hogan Date: Wed, 27 Feb 2013 16:16:38 +0000 (+0000) Subject: metag: perf: fix wrap handling in delta calculation X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~101^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c43ca04b5e7854b3996f84a495e4553941e76266;p=pandora-kernel.git metag: perf: fix wrap handling in delta calculation When calculating the delta, mask with MAX_PERIOD (24 bits) to handle wrapping, which particularly happens with periodic sampling since the value is intentionally set so that it will overflow soon. Signed-off-by: James Hogan Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed