• J
    arm_pmu: Introduce pmu_irq_ops · effcfafa
    Julien Thierry 提交于
    hulk inclusion
    category: feature
    bugzilla: 12804
    CVE: NA
    
    -------------------------------------------------
    
    Currently the PMU interrupt can either be a normal irq or a percpu irq.
    Supporting NMI will introduce two cases for each existing one. It becomes
    a mess of 'if's when managing the interrupt.
    
    Define sets of callbacks for operations commonly done on the interrupt. The
    appropriate set of callbacks is selected at interrupt request time and
    simplifies interrupt enabling/disabling and freeing.
    Signed-off-by: NJulien Thierry <julien.thierry@arm.com>
    Signed-off-by: NWei Li <liwei391@huawei.com>
    Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
    effcfafa
arm_pmu.c 22.3 KB