diff options
author | Frederic Weisbecker <[email protected]> | 2014-03-05 15:33:18 +0100 |
---|---|---|
committer | Frederic Weisbecker <[email protected]> | 2014-03-13 15:56:43 +0100 |
commit | 69bb2600c9f8ca450fede9633edf9c2513c9ee6f (patch) | |
tree | 882511f34317d6c092430f9f19f6d89e9231c623 /lib/mpi | |
parent | 6f008e72cd111a119b5d8de8c5438d892aae99eb (diff) |
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 <[email protected]>
Cc: Marcelo Tosatti <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions