From: Martin Schwidefsky Date: Mon, 28 Oct 2013 11:15:32 +0000 (+0100) Subject: s390/vtime: correct idle time calculation X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~58^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4560e7c3317c7a2b370e36dadd3a3bac2ed70818;p=pandora-kernel.git s390/vtime: correct idle time calculation Use the ACCESS_ONCE macro for both accesses to idle->sequence in the loops to calculate the idle time. If only one access uses the macro, the compiler is free to cache the value for the second access which can cause endless loops. Cc: stable@vger.kernel.org # 3.6+ Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed