From: sukadev@linux.vnet.ibm.com Date: Wed, 1 Oct 2014 06:03:18 +0000 (-0700) Subject: powerpc/perf/hv-24x7: Simplify catalog_read() X-Git-Tag: fixes-against-v3.18-rc2~117^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56f12bee55d740dc47eed0ca9d5c72cffdffd6cf;p=pandora-kernel.git powerpc/perf/hv-24x7: Simplify catalog_read() catalog_read() implements the read interface for the sysfs file /sys/bus/event_source/devices/hv_24x7/interface/catalog It essentially takes a buffer, an offset and count as parameters to the read() call. It makes a hypervisor call to read a specific page from the catalog and copy the required bytes into the given buffer. Each call to catalog_read() returns at most one 4K page. Given these requirements, we should be able to simplify the catalog_read(). Signed-off-by: Sukadev Bhattiprolu Signed-off-by: Michael Ellerman --- Reading git-diff-tree failed