pseries: Return the token when we register an RTAS call
commit4aac82c34675fcbd3722dfc3a2d04c839215ec6b
authorMichael Ellerman <michael@ellerman.id.au>
Mon, 12 Nov 2012 16:46:52 +0000 (12 16:46 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 14 Dec 2012 12:12:54 +0000 (14 13:12 +0100)
tree92ded7d5ab0d5e2d950b0ffdab480a38dcaec530
parentbf3bc4c4e992fb9914e2f1f7e8a569394d298b57
pseries: Return the token when we register an RTAS call

The kernel will soon be able to service some RTAS calls. However the
choice of tokens will still be up to userspace. To support this have
spapr_rtas_register() return the token that is allocated for an
RTAS call, that allows the calling code to tell the kernel what the
token value is.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/spapr.h
hw/spapr_rtas.c