powerpc/perf: Return appropriate value for unknown domain
Return proper error code for unknown domain during IMC initialization. Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com> Reviewed-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
committed by
Michael Ellerman
parent
b41bb28b9e
commit
e7a8ac4338
@@ -1371,7 +1371,7 @@ int init_imc_pmu(struct device_node *parent, struct imc_pmu *pmu_ptr, int pmu_id
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return -1; /* Unknown domain */
|
return -EINVAL; /* Unknown domain */
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = update_events_in_group(parent, pmu_ptr);
|
ret = update_events_in_group(parent, pmu_ptr);
|
||||||
|
|||||||
Reference in New Issue
Block a user