]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Move CMO code from plapr_wrappers.h to platforms/pseries
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Nov 2016 05:28:10 +0000 (16:28 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 17 Nov 2016 06:11:46 +0000 (17:11 +1100)
commit8e1d9e76e3a24ad7a92ec1e52b3a1b153655d759
tree49f5af47334affaa0fea6f0d73d8914401a8fa34
parent30b5e6493d9bde288b1abb04362d2f8da51e8a93
powerpc/pseries: Move CMO code from plapr_wrappers.h to platforms/pseries

Currently there's some CMO (Cooperative Memory Overcommit) code, in
plpar_wrappers.h. Some of it is #ifdef CONFIG_PSERIES and some of it
isn't. The end result being if a file includes plpar_wrappers.h it won't
build with CONFIG_PSERIES=n.

Fix it by moving the CMO code into platforms/pseries. The two hcall
wrappers can just be moved into their only caller, cmm.c, and the
accessors can go in pseries.h.

Note we need the accessors because cmm.c can be built as a module, so
there needs to be a split between the built-in code vs the module, and
that's achieved by using those accessors.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/hvcall.h
arch/powerpc/include/asm/plpar_wrappers.h
arch/powerpc/platforms/pseries/cmm.c
arch/powerpc/platforms/pseries/lparcfg.c
arch/powerpc/platforms/pseries/pseries.h