On Sat, 2016-11-06 at 07:18:12 UTC, Madhavan Srinivasan wrote:
> diff --git a/arch/powerpc/kernel/cpu_setup_power.S 
> b/arch/powerpc/kernel/cpu_setup_power.S
> index 584e119fa8b0..a2080fde0cc5 100644
> --- a/arch/powerpc/kernel/cpu_setup_power.S
> +++ b/arch/powerpc/kernel/cpu_setup_power.S
> @@ -219,3 +223,16 @@ __init_PMU:
>       mtspr   SPRN_MMCR1,r5
>       mtspr   SPRN_MMCR2,r5
>       blr
> +
> +__init_PMU_HV_300:
> +     li      r5,0
> +     mtspr   SPRN_MMCRC,r5
> +     blr
> +
> +__init_PMU_300:
> +     li      r5,0
> +     mtspr   SPRN_MMCRA,r5
> +     mtspr   SPRN_MMCR0,r5
> +     mtspr   SPRN_MMCR1,r5
> +     mtspr   SPRN_MMCR2,r5
> +     blr

With the exception of MMCRS, these are the same as the Power8 code. So there
should be able to be some common code.

cheers
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to