powerpc/powernv: Add OPAL call to resync timebase on wakeup
authorVaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Wed, 26 Feb 2014 00:08:43 +0000 (05:38 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 5 Mar 2014 04:56:54 +0000 (15:56 +1100)
commit97eb001f03494758a938300908b88929163650ce
treea266f44413ae0418c95436e505b7441d041e328e
parentaca79d2b6ec2c0b955b22abb71c6dab90fa1d4d5
powerpc/powernv: Add OPAL call to resync timebase on wakeup

During "Fast-sleep" and deeper power savings state, decrementer and
timebase could be stopped making it out of sync with rest
of the cores in the system.

Add a firmware call to request platform to resync timebase
using low level platform methods.

Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Preeti U. Murthy <preeti@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/opal.h
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/kernel/idle_power7.S
arch/powerpc/platforms/powernv/opal-wrappers.S