From: Tyrel Datwyler Date: Wed, 19 Feb 2014 20:56:54 +0000 (-0800) Subject: powerpc/pseries: Expose in kernel device tree update to drmgr X-Git-Tag: v3.15-rc1~124^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9da3489210fe1870491b0cc49c0304994baa7e96;p=pandora-kernel.git powerpc/pseries: Expose in kernel device tree update to drmgr Traditionally it has been drmgr's responsibilty to update the device tree through the /proc/ppc64/ofdt interface after a suspend/resume operation. This patchset however has modified suspend/resume ops to preform an update entirely in the kernel during the resume. Therefore, a mechanism is required to expose that information to drmgr. This patch adds a show function to the "hibernate" attribute that returns 1 if the kernel performs a device tree update after the resume and 0 otherwise. This allows newer versions of drmgr to avoid doing a second unnecessary device tree update. Signed-off-by: Tyrel Datwyler Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed