lkml.org 
[lkml]   [2014]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH v1 69/70] staging, lustre, linux-cpu: _FROZEN Cleanup
Date
Remove XXX_FROZEN state from lustre/linux-cpu.

Signed-off-by: Chen, Gong <gong.chen@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


\
 
 \ /
  Last update: 2014-07-23 05:41    [W:1.100 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site