Greg Kurz 12bf2d33fe spapr: disintricate core-id from DT semantics
The goal of this patch is to have a stable core-id which does not depend
on any DT related semantics, which involve non-obvious computations on
modern PowerPC server cpus.

With this patch, the DT core id is computed on-demand as:

       (core-id / smp_threads) * smt

where smt is the number of threads per core in the host.

This formula should be consolidated in a helper since it is needed in
several places.

Other uses for core-id includes: compute a stable cpu_index (which
allows random order hotplug/unplug without breaking migration) and
NUMA.

Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2016-07-25 15:43:41 +10:00
..
2016-05-19 16:42:28 +02:00
2016-06-13 13:24:41 +02:00
2016-01-29 15:07:22 +00:00
2016-01-29 15:07:22 +00:00
2016-07-01 09:57:01 +10:00
2016-06-13 13:24:41 +02:00
2016-07-06 10:52:04 +02:00
2016-06-17 16:33:49 +10:00