On Thu, Sep 04, 2014 at 04:46:32PM +0100, Sudeep Holla 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_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 <sudeep.holla@xxxxxxx> > Suggested-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> > Acked-by: "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx> > Acked-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> > Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html