powerpc: Add an inline function to update POWER8 HID0
authorGautham R. Shenoy <ego@linux.vnet.ibm.com>
Wed, 5 Aug 2015 07:08:31 +0000 (12:38 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 14 Aug 2015 05:58:28 +0000 (15:58 +1000)
commite63dbd16ab7be41f5b66a70f1082242d76dd21d7
tree55996fb7acda110d3a4dd4fedb0673ed259f1607
parent9afac933433ca71e0f78958a1286a8d3b9de5582
powerpc: Add an inline function to update POWER8 HID0

Section 3.7 of Version 1.2 of the Power8 Processor User's Manual
prescribes that updates to HID0 be preceded by a SYNC instruction and
followed by an ISYNC instruction (Page 91).

Create an inline function name update_power8_hid0() which follows this
recipe and invoke it from the static split core path.

Signed-off-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Reviewed-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Tested-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/reg.h
arch/powerpc/platforms/powernv/subcore.c