Remove XXX_FROZEN state from lustre/linux-cpu. Signed-off-by: Chen, Gong <gong.c...@linux.intel.com> --- drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c b/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c index fc21210..0e061ca 100644 --- a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c +++ b/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c @@ -954,16 +954,14 @@ cfs_cpu_notify(struct notifier_block *self, unsigned long action, void *hcpu) unsigned int cpu = (unsigned long)hcpu; bool warn; - switch (action) { + switch (action & ~CPU_TASKS_FROZEN) { case CPU_DEAD: - case CPU_DEAD_FROZEN: case CPU_ONLINE: - case CPU_ONLINE_FROZEN: spin_lock(&cpt_data.cpt_lock); cpt_data.cpt_version++; spin_unlock(&cpt_data.cpt_lock); default: - if (action != CPU_DEAD && action != CPU_DEAD_FROZEN) { + if ((action & ~CPU_TASKS_FROZEN) != CPU_DEAD) { CDEBUG(D_INFO, "CPU changed [cpu %u action %lx]\n", cpu, action); 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/