OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b41bb28
)
powerpc/perf: Return appropriate value for unknown domain
author
Anju T Sudhakar
<anju@linux.vnet.ibm.com>
Tue, 22 May 2018 09:12:36 +0000
(14:42 +0530)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:43:37 +0000
(20:43 +1000)
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>
arch/powerpc/perf/imc-pmu.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/perf/imc-pmu.c
b/arch/powerpc/perf/imc-pmu.c
index
61000d1
..
f563d30
100644
(file)
--- a/
arch/powerpc/perf/imc-pmu.c
+++ b/
arch/powerpc/perf/imc-pmu.c
@@
-1371,7
+1371,7
@@
int init_imc_pmu(struct device_node *parent, struct imc_pmu *pmu_ptr, int pmu_id
break;
default:
- return -
1;
/* Unknown domain */
+ return -
EINVAL;
/* Unknown domain */
}
ret = update_events_in_group(parent, pmu_ptr);