From: Frederic Weisbecker Date: Wed, 5 Mar 2014 14:33:18 +0000 (+0100) Subject: cputime: Fix nsecs_to_cputime() return type cast X-Git-Tag: v3.15-rc1~156^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69bb2600c9f8ca450fede9633edf9c2513c9ee6f;p=pandora-kernel.git cputime: Fix nsecs_to_cputime() return type cast Even though nsec based cputime_t maps to u64, nsecs_to_cputime() must return a cputime_t value. We want to enforce this kind of cast in order to track down buggy manipulations of cputime_t such as direct access of its values under wrong assumptions on its backend type (nsecs, jiffies, etc...) by core code. Cc: Ingo Molnar Cc: Marcelo Tosatti Cc: Peter Zijlstra Cc: Thomas Gleixner Acked-by: Rik van Riel Signed-off-by: Frederic Weisbecker --- Reading git-diff-tree failed