# \[PATCH\] OMAP3: pmu: make CPU\_HAS\_PMU dependent on OMAP3\_EMU

- From: Will Deacon \<hidden\>
- Date: 2010-06-16 12:33:22 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2010/06/8550902
- Thread: https://ratatoskr.run/linux-arm-kernel/2010/05/8549587/t.md

```text
Jean,

> > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> > index 1f254bd..98922f7 100644
> > --- a/arch/arm/Kconfig
> > +++ b/arch/arm/Kconfig
> > @@ -955,7 +955,8 @@ config XSCALE_PMU
> >        default y
> >
> >  config CPU_HAS_PMU
> > -       depends on CPU_V6 || CPU_V7 || XSCALE_PMU
> > +       depends on (CPU_V6 || CPU_V7 || XSCALE_PMU) && \
> > +                  (!ARCH_OMAP3 || OMAP3_EMU)
> >        default y
> >        bool
> >
> > --
> > 1.6.3.3
> >
> >
> 
> The patch nicely fixes the issue. Tested with Oprofile on OMAP3530
> EVM. RETention and OFF power modes succesfully tested.
> 
> Acked-by: Jean Pihet <redacted>

Brilliant - thanks for testing this.
Tony: would you mind picking this patch up please or would
you prefer that I posted it to Russell's patch system?

Thanks,

Will
```
