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

2014-09-24 Thread Peter Zijlstra
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

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

2014-09-24 Thread Sudeep Holla
Hi Peter, On 04/09/14 16:46, 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

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

2014-09-24 Thread Sudeep Holla
Hi Peter, On 04/09/14 16:46, Sudeep Holla wrote: From: Sudeep Holla sudeep.ho...@arm.com 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

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

2014-09-24 Thread Peter Zijlstra
On Thu, Sep 04, 2014 at 04:46:32PM +0100, Sudeep Holla wrote: From: Sudeep Holla sudeep.ho...@arm.com 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

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

2014-09-19 Thread Stephen Boyd
On 09/04/14 08:46, 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

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

2014-09-19 Thread Stephen Boyd
On 09/04/14 08:46, Sudeep Holla wrote: From: Sudeep Holla sudeep.ho...@arm.com 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

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

2014-09-04 Thread Sudeep Holla
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

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

2014-09-04 Thread Sudeep Holla
From: Sudeep Holla sudeep.ho...@arm.com 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