Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758764AbYCGIj2 (ORCPT ); Fri, 7 Mar 2008 03:39:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752279AbYCGIjT (ORCPT ); Fri, 7 Mar 2008 03:39:19 -0500 Received: from fg-out-1718.google.com ([72.14.220.158]:13948 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751155AbYCGIjS (ORCPT ); Fri, 7 Mar 2008 03:39:18 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:content-type; b=MxyH2FLqWZrLda9OmpKOCN6XYmhwUi0Rp5uL95NLgNuBSa/brB7I5AfoQgnoy5017KTur5TlKuTkKka/8Ol+wYGUbLW0IdMzZ2AuzK8xh7RBJRNCFvT8g28wADA1W0RK4iF+uZ/Sbzxgpy/JYK4tXk3alR2JkHUGLBUm/6uFJb8= Message-ID: <47D101E0.6040802@gmail.com> Date: Fri, 07 Mar 2008 16:50:40 +0800 From: Peter Teoh User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: linux-kernel@vger.kernel.org Subject: Removing kernel_thread() from stop_machine.c Content-Type: multipart/mixed; boundary="------------070900040103060102020904" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1765 Lines: 59 This is a multi-part message in MIME format. --------------070900040103060102020904 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I replaced the kernel_thread() API in stop_machine.c as per document: Documentation/feature-removal-schedule.txt. Please comment. --------------070900040103060102020904 Content-Type: text/x-patch; name="remove_kernel_thread_stop_machine.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="remove_kernel_thread_stop_machine.patch" Signed-off-by: Peter Teoh --- kernel/stop_machine.c.orig 2008-03-07 13:20:00.000000000 +0800 +++ kernel/stop_machine.c 2008-03-07 16:45:30.000000000 +0800 @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -92,6 +93,7 @@ static void stopmachine_set_state(enum s static int stop_machine(void) { int i, ret = 0; + struct task_struct *task; atomic_set(&stopmachine_thread_ack, 0); stopmachine_num_threads = 0; @@ -100,7 +102,8 @@ static int stop_machine(void) for_each_online_cpu(i) { if (i == raw_smp_processor_id()) continue; - ret = kernel_thread(stopmachine, (void *)(long)i,CLONE_KERNEL); + task = kthread_create(stopmachine, (void *)(long)i,"stopmachine"); + ret = PTR_ERR(task); if (ret < 0) break; stopmachine_num_threads++; --------------070900040103060102020904-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/