perf/x86/intel/uncore: Clear all hardware state on exit
authorThomas Gleixner <[email protected]>
Mon, 22 Feb 2016 22:19:17 +0000 (22:19 +0000)
committerIngo Molnar <[email protected]>
Mon, 29 Feb 2016 08:35:19 +0000 (09:35 +0100)
commit7b672d6433f0f31c95be74b649090cd8b3a6388d
tree8e4c3b2e5a1f8516bcec266c4a54455b5dac690c
parentcf6d445f68974d0b15a14cf6021be38a91f2b5d8
perf/x86/intel/uncore: Clear all hardware state on exit

The only missing bit is to completely clear the hardware state on failure
exit. This is now a pretty simple exercise.

Undo the box->init_box() setup on all packages which have been initialized so
far.

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