oprofile/x86: rework error handler in nmi_setup()
authorRobert Richter <robert.richter@amd.com>
Tue, 23 Mar 2010 18:09:51 +0000 (19:09 +0100)
committerRobert Richter <robert.richter@amd.com>
Tue, 4 May 2010 09:35:07 +0000 (11:35 +0200)
This patch improves the error handler in nmi_setup(). Most parts of
the code are moved to allocate_msrs(). In case of an error
allocate_msrs() also frees already allocated memory. nmi_setup()
becomes easier and better extendable.

Signed-off-by: Robert Richter <robert.richter@amd.com>

No differences found