perf, x86: Report error code that returned from x86_pmu.hw_config()
authorRobert Richter <robert.richter@amd.com>
Tue, 16 Mar 2010 16:07:33 +0000 (17:07 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 17 Mar 2010 09:43:50 +0000 (10:43 +0100)
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: Robert Richter <robert.richter@amd.com>
Acked-by: Cyrill Gorcunov <gorcunov@gmail.com>
Acked-by: Lin 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: Ingo Molnar <mingo@elte.hu>

No differences found