提交 e7a8ac43 编写于 作者: A Anju T Sudhakar 提交者: Michael Ellerman

powerpc/perf: Return appropriate value for unknown domain

Return proper error code for unknown domain during IMC initialization.
Signed-off-by: NAnju T Sudhakar <anju@linux.vnet.ibm.com>
Reviewed-by: NMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 b41bb28b
...@@ -1371,7 +1371,7 @@ int init_imc_pmu(struct device_node *parent, struct imc_pmu *pmu_ptr, int pmu_id ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册