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 02/70] ia64, err_inject: _FROZEN Cleanup
Date
Remove XXX_FROZEN state from ia64/err_inject.

Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
---
arch/ia64/kernel/err_inject.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/ia64/kernel/err_inject.c b/arch/ia64/kernel/err_inject.c
index 0c161ed..a8b70d4 100644
--- a/arch/ia64/kernel/err_inject.c
+++ b/arch/ia64/kernel/err_inject.c
@@ -242,13 +242,11 @@ static int err_inject_cpu_callback(struct notifier_block *nfb,
struct device *sys_dev;

sys_dev = get_cpu_device(cpu);
- switch (action) {
+ switch (action & ~CPU_TASKS_FROZEN) {
case CPU_ONLINE:
- case CPU_ONLINE_FROZEN:
err_inject_add_dev(sys_dev);
break;
case CPU_DEAD:
- case CPU_DEAD_FROZEN:
err_inject_remove_dev(sys_dev);
break;
}
--
2.0.0.rc2


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