Sudeep Holla 5aaba36318 cpumask: factor out show_cpumap into separate helper function
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@arm.com>
Suggested-by: Stephen Boyd <sboyd@codeaurora.org>
Tested-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: x86@kernel.org
Cc: linux-acpi@vger.kernel.org
Cc: linux-pci@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-11-07 11:45:00 -08:00
..
2014-09-22 16:48:47 +09:00
2014-10-03 15:28:18 -06:00
2014-10-14 09:00:44 -06:00
2014-11-02 14:39:35 -08:00
2014-09-26 15:05:15 -04:00
2014-09-19 09:29:32 -04:00
2014-10-21 00:51:01 +02:00
2014-08-01 22:35:55 +08:00
2014-10-15 07:23:49 +02:00
2014-07-08 13:36:52 -07:00
2014-06-26 15:46:55 -03:00
2014-01-16 10:23:02 +10:30
2014-09-23 11:10:20 -07:00
2014-04-01 23:19:14 -04:00
2014-03-10 11:44:42 -04:00
2014-09-26 15:05:15 -04:00
2014-10-09 11:35:48 +03:00
2014-10-08 16:01:41 -04:00
2014-08-07 14:40:08 -04:00
2014-04-18 14:20:48 +02:00
2014-08-06 18:01:24 -07:00
2014-05-20 10:30:40 +09:00
2014-02-20 14:54:28 +01:00
2014-01-16 11:15:50 +01:00
2014-09-25 16:07:15 +02:00
2014-06-06 16:08:13 -07:00
2014-09-29 15:37:01 -04:00
2014-06-02 14:56:01 -07:00
2014-09-01 13:48:59 +02:00
2014-10-15 07:23:49 +02:00
2014-04-17 12:30:40 -07:00
2014-03-13 12:11:00 +10:30
2014-07-22 21:55:45 +01:00
2014-10-14 02:18:13 +02:00
2014-05-27 17:38:11 -07:00
2014-10-09 22:25:58 -04:00
2014-09-24 14:07:58 +02:00
2014-10-09 22:25:57 -04:00
2014-10-24 00:14:36 +02:00
2014-03-04 13:51:06 -05:00
2014-01-27 21:02:39 -08:00
2014-04-01 23:19:10 -04:00
2014-10-15 12:11:00 -04:00
2014-09-30 16:24:56 -04:00
2014-09-30 16:24:56 -04:00
2014-01-25 03:14:05 -05:00
2014-04-07 10:59:19 -07:00
2014-06-10 14:35:22 -07:00
2014-10-15 06:58:16 +02:00
2014-10-09 15:03:49 -04:00
2014-07-09 14:58:37 +01:00
2014-08-26 13:45:56 -04:00
2014-06-04 16:54:07 -07:00
2014-10-07 01:18:12 +02:00
2014-07-15 22:40:22 +02:00
2014-09-13 12:30:26 -04:00
2014-08-08 15:57:26 -07:00
2014-08-08 15:57:31 -07:00
2014-06-12 00:21:11 -04:00
2014-02-15 11:55:28 -08:00
2014-02-17 15:01:37 -08:00
2014-06-04 16:53:57 -07:00
2014-08-08 15:57:24 -07:00
2014-06-04 16:53:56 -07:00
2014-09-23 21:40:48 -07:00
2014-09-25 17:05:12 +02:00
2014-08-08 15:57:22 -07:00
2014-09-16 15:02:55 -06:00
2014-04-07 16:35:53 -07:00
2014-06-04 16:53:57 -07:00