diff options
author | James Morse <james.morse@arm.com> | 2019-01-29 18:48:45 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-02-07 23:10:45 +0100 |
commit | ee2eb3d4ee175c2fb5c7f67e84f5fe40a8147d92 (patch) | |
tree | afce734b48c7e0b83ff6d7950c24e372e4b6ade1 /drivers/pci | |
parent | 5cc6c68287ae4be22c40b41cf6844746cddebbcc (diff) | |
download | linux-ee2eb3d4ee175c2fb5c7f67e84f5fe40a8147d92.tar.bz2 |
ACPI / APEI: Generalise the estatus queue's notify code
Refactor the estatus queue's pool notification routine from
NOTIFY_NMI's handlers. This will allow another notification
method to use the estatus queue without duplicating this code.
Add rcu_read_lock()/rcu_read_unlock() around the list
list_for_each_entry_rcu() walker. These aren't strictly necessary as
the whole nmi_enter/nmi_exit() window is a spooky RCU read-side
critical section.
in_nmi_queue_one_entry() is separate from the rcu-list walker for a
later caller that doesn't need to walk a list.
Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Punit Agrawal <punit.agrawal@arm.com>
Tested-by: Tyler Baicar <tbaicar@codeaurora.org>
[ rjw: Drop unnecessary err variable in two places ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pci')
0 files changed, 0 insertions, 0 deletions