perf/x86/intel/uncore: Simplify error rollback
authorThomas Gleixner <[email protected]>
Mon, 22 Feb 2016 22:19:09 +0000 (22:19 +0000)
committerIngo Molnar <[email protected]>
Mon, 29 Feb 2016 08:35:13 +0000 (09:35 +0100)
commitffeda003803213a8d0babefdd6a95fe424884c14
tree3d9b81f36714248e1e7c27a943076f193157a313
parent3ccca9eca67ec68461a5266832d02aee538599b2
perf/x86/intel/uncore: Simplify error rollback

No point in doing partial rollbacks. Robustify uncore_exit_type() so it does
not dereference type->pmus unconditionally and remove all the partial rollback
hackery.

Preparatory patch for proper error handling.

Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Harish Chegondi <[email protected]>
Cc: Jacob Pan <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Vince Weaver <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/events/intel/uncore.c