x86: mp_init: Use proper error numbers
authorSimon Glass <sjg@chromium.org>
Fri, 26 Apr 2019 03:58:41 +0000 (21:58 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 8 May 2019 05:02:11 +0000 (13:02 +0800)
commit7b140238800533b334a160bf94c2901c98bc1550
tree18bd16cf54c37a32e3415cf32bd8504b6b7ccfc8
parent11b7cc37f15ae0f27987da5a037e6603e068f20c
x86: mp_init: Use proper error numbers

At present many of the functions in this file return -1 as an error
number. which is -EPERM. Update the code to use real error numbers.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/mp_init.c