Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760115AbZFPQXV (ORCPT ); Tue, 16 Jun 2009 12:23:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754263AbZFPQXO (ORCPT ); Tue, 16 Jun 2009 12:23:14 -0400 Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:56163 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751843AbZFPQXN (ORCPT ); Tue, 16 Jun 2009 12:23:13 -0400 To: Gautham R Shenoy Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Balbir Singh , Rusty Russel , Paul E McKenney , Ingo Molnar , Venkatesh Pallipadi , Andrew Morton , Vaidyanathan Srinivasan , Dipankar Sarma , Shoahua Li Subject: Re: [RFD PATCH 2/4] cpu: sysfs interface for hotplugging bunch of CPUs. References: <20090616053431.30891.18682.stgit@sofia.in.ibm.com> <20090616053849.30891.17453.stgit@sofia.in.ibm.com> From: Nathan Lynch Date: Tue, 16 Jun 2009 11:22:56 -0500 In-Reply-To: <20090616053849.30891.17453.stgit@sofia.in.ibm.com> (Gautham R. Shenoy's message of "Tue\, 16 Jun 2009 11\:08\:49 +0530") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Pobox-Relay-ID: FEA98BBE-5A91-11DE-8672-97731A10BFE7-04752483!a-sasl-fastnet.pobox.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1177 Lines: 29 Gautham R Shenoy writes: > echo 2,3 > /sys/devices/system/cpu/offline #Offlines CPUs 2 and 3 > echo 4 > /sys/devices/sytem/cpu/offline #Offlines CPU 4 > echo 2-4 > /sys/devices/system/cpu/online #Onlines CPU 2,3,4 > > This patch changes the permissions of these sysfs files from 0444 to 0644. > It provides a dummy store function, which currently parses the input > provided by the user and copies them to another debug cpumask structure, > which can be accessed using the sysfs interfaces: > /sys/devices/system/cpu/debug_offline > and > /sys/devices/system/cpu/debug_online > > Thus on performing a > echo 2,3 > /sys/devices/system/cpu/offline > the operation > cat /sys/devices/system/cpu/debug_offline > should yield > 2-3 > as the result. These debug_(on|off)line attributes aren't intended to be in the final result, are they? They don't seem useful beyond the development phase of this feature... -- 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/