Re: [PATCH v4 01/11] cpumask: factor out show_cpumap into separate helper function

From: Sudeep Holla
Date: Wed Sep 03 2014 - 13:10:04 EST


Hi Bjorn,

On 03/09/14 18:05, Bjorn Helgaas wrote:
On Wed, Sep 3, 2014 at 11:00 AM, Sudeep Holla <sudeep.holla@xxxxxxx> wrote:
From: Sudeep Holla <sudeep.holla@xxxxxxx>

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_copy_to_buf in
cpumask.h and consolidates most of them using this new helper.

Signed-off-by: Sudeep Holla <sudeep.holla@xxxxxxx>
Suggested-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx>
Cc: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
Cc: x86@xxxxxxxxxx
Cc: linux-acpi@xxxxxxxxxxxxxxx
Cc: linux-pci@xxxxxxxxxxxxxxx

Acked-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> (drivers/pci part)


Thanks.

I assume you'll merge this via a non-PCI tree.


Yes, since it's widespread change, I prefer it to go through Greg's tree.

Regards,
Sudeep

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/