From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH v4 01/11 UPDATE] cpumask: factor out show_cpumap into separate helper function Date: Wed, 24 Sep 2014 12:20:16 +0200 Message-ID: <20140924102016.GW16043@twins.programming.kicks-ass.net> References: <1409763617-17074-2-git-send-email-sudeep.holla@arm.com> <1409845592-27739-1-git-send-email-sudeep.holla@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from bombadil.infradead.org ([198.137.202.9]:36478 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753858AbaIXKU2 (ORCPT ); Wed, 24 Sep 2014 06:20:28 -0400 Content-Disposition: inline In-Reply-To: <1409845592-27739-1-git-send-email-sudeep.holla@arm.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Sudeep Holla Cc: LKML , Lorenzo Pieralisi , Greg Kroah-Hartman , "Rafael J. Wysocki" , Bjorn Helgaas , x86@kernel.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org On Thu, Sep 04, 2014 at 04:46:32PM +0100, Sudeep Holla wrote: > From: Sudeep Holla > > Many sysfs *_show function use cpu{list,mask}_scnprintf to copy cpumap > to the buffer aligned to PAGE_SIZE, append '\n' and '\0' to return null > terminated buffer with newline. > > This patch creates a new helper function cpumap_print_to_pagebuf in > cpumask.h using newly added bitmap_print_to_pagebuf and consolidates > most of those sysfs functions using the new helper function. > > Signed-off-by: Sudeep Holla > Suggested-by: Stephen Boyd > Acked-by: "Rafael J. Wysocki" > Acked-by: Bjorn Helgaas > Cc: Greg Kroah-Hartman Acked-by: Peter Zijlstra (Intel)