perf, x86: Report error code that returned from x86_pmu.hw_config()
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: Robert Richter <22a70fd9773e4de05b12c05075e9bcd605577f4d@amd.com>
Acked-by: Cyrill Gorcunov <7a1ea01eee6961eb1e372e3508c2670446d086f4@gmail.com>
Acked-by: Lin Ming <d6f051473f553588884d51874952f6fb19ae8261@intel.com>
Cc: 293abb6b76d7791c0732cc517d38c4b5c734b87f@redhat.com
Cc: f199ae9781930a5b94b284ca2f471140752002a7@google.com
Cc: 7a1ea01eee6961eb1e372e3508c2670446d086f4@openvz.org
Cc: 3fddac958924aef220f202ca567388ddab3f14a8@infradead.org
Cc: e8a1bf9163cb25e93cfd6540f223b3872ea7ee55@gmail.com
LKML-Reference: <a94c0a1d52144f503ac3a1d2ba187d332a3d9c8c@erda.amd.com>
Signed-off-by: Ingo Molnar <9dbbbf0688fedc85ad4da37637f1a64b8c718ee2@elte.hu>

KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas