From: Vitaly Mayatskikh Date: Sun, 28 Sep 2008 23:24:33 +0000 (+0000) Subject: powerpc: Honor O_NONBLOCK flag when reading RTAS log X-Git-Tag: v2.6.28-rc1~569^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76c31f239ea221a6c84bd26141262a43bfe8b7f4;p=pandora-kernel.git powerpc: Honor O_NONBLOCK flag when reading RTAS log rtas_log_read() doesn't check file flags for O_NONBLOCK and blocks non-blocking readers of /proc/ppc64/rtas/error_log when there is no data available. This fixes it. Also rtas_log_read() returns now with ENODATA to prevent suspending of process in wait_event_interruptible() when logging facility was switched off and log is already empty. Signed-off-by: Vitaly Mayatskikh Acked-by: David Howells Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed