David Gibson 295b6c26ac spapr: Clean up LPCR updates from hypercalls
There are several places in spapr_hcall.c where we need to update the LPCR
value on all CPUs.  We do this with the set_spr() helper.  That's not
really correct because this directly sets the SPR value, without going
through the ppc_store_lpcr() helper which may need to update state based
on the LPCR change.

In fact, set_spr() is only ever used for the LPCR, so replace it with an
explicit LPCR updated which uses the right low-level helper.  While we're
there, move the CPU_FOREACH() which was in every one of the callers into
the new helper: set_all_lpcrs().

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Tested-by: Cédric Le Goater <clg@kaod.org>
2018-05-04 15:00:37 +10:00
..
2018-03-01 11:05:45 +00:00
2018-03-02 13:45:50 -06:00
2016-01-29 15:07:25 +00:00
2018-03-23 18:38:55 +03:00
2018-04-27 10:57:09 +02:00
2018-04-27 11:36:34 +02:00
2018-03-02 13:45:50 -06:00
2018-02-19 13:03:24 +02:00