diff options
author | Takashi Iwai <[email protected]> | 2017-01-31 16:26:10 +0100 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2017-02-03 17:34:03 +0100 |
commit | 99b2ab9d3aa08824dfefd7d9ad9f2b4c19555d05 (patch) | |
tree | 0564d35d0debaf48e6bae5a01ea189a1a64a3b3c /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | f6a82a0c01e51dd494b6eb68861473368355e58b (diff) |
ALSA: x86: Fix sleep-in-atomic via i915 notification
i915 notification is executed in a spinlock, thus it must not sleep;
i.e. we can't use kmalloc with GFP_KERNEL or such.
For making it working properly, move the notification handler in a
work, and handle it gracefully. We have already such a work, and it
was used just at the start. This can be re-used in a more generic
hotplug handling.
Also, the patch adds the proper call of cancel_work_sync() to the
destructor.
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions