• Mao Han's avatar
    csky: Add count-width property for csky pmu · ccffa1ad
    Mao Han authored
    The csky pmu counter may have different io width. When the counter is
    smaller then 64 bits and counter value is smaller than the old value, it
    will result to a extremely large delta value. So the sampled value should
    be extend to 64 bits to avoid this, the extension bits base on the
    count-width property from dts.
    Signed-off-by: default avatarMao Han <han_mao@c-sky.com>
    Signed-off-by: default avatarGuo Ren <guoren@kernel.org>
    ccffa1ad
perf_event.c 23 KB