apm32: Fix cputime == jiffies assumption
authorFrederic Weisbecker <fweisbec@gmail.com>
Mon, 27 Oct 2014 16:16:04 +0000 (17:16 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Wed, 29 Jul 2015 13:44:58 +0000 (15:44 +0200)
commit031a7f456adecaff692bc040b31a7d2262b4ee56
tree1c8973c5d1e8a57350f1075f26db817105db2b9f
parente075867681ca9b8c0b8823e24d0fb4ce3b4f2655
apm32: Fix cputime == jiffies assumption

That code wrongly assumes that cputime_t wraps jiffies_t. Lets use
the correct accessors/mutators.

No real harm now as that code can't be used with full dynticks.

Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc; John Stultz <john.stultz@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
arch/x86/kernel/apm_32.c