Re: [PATCH] perf,x86: fix kernel crash with PEBS/BTS after suspend/resume

From: Linus Torvalds
Date: Sat Mar 16 2013 - 13:56:31 EST


On Sat, Mar 16, 2013 at 9:11 AM, Parag Warudkar <parag.lkml@xxxxxxxxx> wrote:
>
> This seems to trigger a WARN_ON during suspend/resume.

Ugh, yes. It's practically harmless, but it's ugly and technically
wrong (we're using wrmsr_on_cpu() on our current cpu, but in a context
where using it on anything else would be horribly broken).

I think the attached patch should fix it. UNTESTED!

Linus

Attachment: patch.diff
Description: Binary data