Remove XXX_FROZEN state from scsi/bnx2fc_fcoe.

Signed-off-by: Chen, Gong <gong.c...@linux.intel.com>
---
 drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c 
b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
index 785d0d7..c56281d 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
@@ -2507,14 +2507,12 @@ static int bnx2fc_cpu_callback(struct notifier_block 
*nfb,
 {
        unsigned cpu = (unsigned long)hcpu;
 
-       switch (action) {
+       switch (action & ~CPU_TASKS_FROZEN) {
        case CPU_ONLINE:
-       case CPU_ONLINE_FROZEN:
                printk(PFX "CPU %x online: Create Rx thread\n", cpu);
                bnx2fc_percpu_thread_create(cpu);
                break;
        case CPU_DEAD:
-       case CPU_DEAD_FROZEN:
                printk(PFX "CPU %x offline: Remove Rx thread\n", cpu);
                bnx2fc_percpu_thread_destroy(cpu);
                break;
-- 
2.0.0.rc2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to