diff options
author | Vitaly Mayatskikh <v.mayatskih@gmail.com> | 2008-09-29 01:24:33 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-10-07 05:26:21 +0200 |
commit | 76c31f239ea221a6c84bd26141262a43bfe8b7f4 (patch) | |
tree | e93025a86c4c935d14a996b17aae572b9ded49dd /firmware/keyspan | |
parent | powerpc: Remove CHRP and PMAC support from FSL defconfigs (diff) | |
download | linux-76c31f239ea221a6c84bd26141262a43bfe8b7f4.tar.xz linux-76c31f239ea221a6c84bd26141262a43bfe8b7f4.zip |
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 <v.mayatskih@gmail.com>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'firmware/keyspan')
0 files changed, 0 insertions, 0 deletions