]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: bnx2i: Simplify cpu hotplug code
authorThomas Gleixner <tglx@linutronix.de>
Mon, 24 Jul 2017 10:53:00 +0000 (12:53 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 27 Jul 2017 01:51:25 +0000 (21:51 -0400)
commitbaa6bc2e19cb8ff8a40b3846d3fa8c4e305203f5
tree15a5380f75e06f0858dce0de9d1e5b5e069a03e5
parent4110678c0bfe0a51a5ebdca1ce7e415ca1f590ab
scsi: bnx2i: Simplify cpu hotplug code

The CPU hotplug related code of this driver can be simplified by:

1) Consolidating the callbacks into a single state. The CPU thread can be
   torn down on the CPU which goes offline. There is no point in delaying
   that to the CPU dead state

2) Let the core code invoke the online/offline callbacks and remove the
   extra for_each_online_cpu() loops.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bnx2i/bnx2i_init.c
include/linux/cpuhotplug.h