Skip to content
Commit 984763cb authored by Robert Richter's avatar Robert Richter Committed by Ingo Molnar
Browse files

perf, x86: Report error code that returned from x86_pmu.hw_config()



If x86_pmu.hw_config() fails a fixed error code (-EOPNOTSUPP) is
returned even if a different error was reported. This patch fixes
this.

Signed-off-by: default avatarRobert Richter <robert.richter@amd.com>
Acked-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
Acked-by: default avatarLin Ming <ming.m.lin@intel.com>
Cc: acme@redhat.com
Cc: eranian@google.com
Cc: gorcunov@openvz.org
Cc: peterz@infradead.org
Cc: fweisbec@gmail.com
LKML-Reference: <20100316160733.GR1585@erda.amd.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 5cc718b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment