OSDN Git Service

powerpc: Add POWER10 raw mode cputable entry
authorMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 17 Aug 2020 00:56:18 +0000 (06:26 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 17 Aug 2020 04:11:26 +0000 (14:11 +1000)
commit327da008e65a25b8206b36b7fc0c9e4edbb36a58
tree3b53cc495551456ce9c1030509af9728cd9c5ee4
parentd735599a069f6936c1392e07075c34a19bda949a
powerpc: Add POWER10 raw mode cputable entry

Add a raw mode cputable entry for POWER10. Copies most of the fields
from commit a3ea40d5c736 ("powerpc: Add POWER10 architected mode")
except for oprofile_cpu_type, machine_check_early, pvr_mask and
pvr_mask fields. On bare metal systems we use DT CPU features, which
doesn't need a cputable entry. But in VMs we still rely on the raw
cputable entry to set the correct values for the PMU related fields.

Fixes: a3ea40d5c736 ("powerpc: Add POWER10 architected mode")
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
[mpe: Reorder vs cleanup patch and add Fixes tag]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200817005618.3305028-2-maddy@linux.ibm.com
arch/powerpc/kernel/cputable.c