From: Vyacheslav Cherkashin Date: Thu, 20 Aug 2015 21:29:35 +0000 (+0300) Subject: [FIX] Avoid non-boot CPUs disabling on stop X-Git-Tag: submit/tizen_2.4/20150912.103527~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f013e0deee8a5e4efe79a55486b5a6e8fcece391;p=kernel%2Fswap-modules.git [FIX] Avoid non-boot CPUs disabling on stop On some targets disabling non-boot CPUs may lead to errors in kernel (i.e. crashes). Change-Id: I09de281b9f47e40e136a9e30b77db36d95278d52 Signed-off-by: Vyacheslav Cherkashin --- diff --git a/parser/swap_msg_parser.c b/parser/swap_msg_parser.c index bed50d0..e5f929d 100644 --- a/parser/swap_msg_parser.c +++ b/parser/swap_msg_parser.c @@ -110,17 +110,10 @@ static int msg_handler(void __user *msg) print_parse_debug("MSG_START. size=%d\n", size); ret = msg_start(&mb); break; - case MSG_STOP: { - struct cpumask mask; - + case MSG_STOP: print_parse_debug("MSG_STOP. size=%d\n", size); - - swap_disable_nonboot_cpus_lock(&mask); ret = msg_stop(&mb); - swap_enable_nonboot_cpus_unlock(&mask); - break; - } case MSG_CONFIG: print_parse_debug("MSG_CONFIG. size=%d\n", size); ret = msg_config(&mb);