idr_cmpxchg
if (!idr_cmpxchg(&pmu_idr, pmu->type, NULL, pmu))
if (!idr_cmpxchg(&pmu_idr, pmu->type, pmu, NULL))
idr_cmpxchg(&pmu_idr, pmu->type, NULL, pmu);