android_kernel_xiaomi_sdm845/arch/powerpc
Vitaly Mayatskikh 76c31f239e 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>
2008-10-07 14:26:21 +11:00
..
boot Merge commit 'jwb/jwb-next' 2008-10-07 11:15:07 +11:00
configs powerpc: Remove CHRP and PMAC support from FSL defconfigs 2008-10-07 14:26:20 +11:00
include/asm Merge commit 'jwb/jwb-next' 2008-10-07 11:15:07 +11:00
kernel powerpc: Fix 64-bit hibernation with 64k pages 2008-10-07 14:26:20 +11:00
kvm KVM: ppc: fix invalidation of large guest pages 2008-07-27 12:02:05 +03:00
lib powerpc: New copy_4K_page() 2008-09-15 11:07:42 -07:00
math-emu powerpc/math-emu: Use kernel generic math-emu code 2008-10-01 08:40:07 -05:00
mm powerpc: Avoid integer overflow in page_is_ram() 2008-10-07 14:26:18 +11:00
oprofile powerpc: Expose PMCs & cache topology in sysfs on 32-bit 2008-08-20 16:34:58 +10:00
platforms powerpc: Honor O_NONBLOCK flag when reading RTAS log 2008-10-07 14:26:21 +11:00
sysdev Merge commit 'jwb/jwb-next' 2008-10-07 11:15:07 +11:00
xmon Merge branch 'linux-2.6' 2008-06-30 10:16:50 +10:00
Kconfig powerpc: Enforce sane MAX_ORDER 2008-10-07 14:26:20 +11:00
Kconfig.debug powerpc: Split-out common MSI bitmap logic into msi_bitmap.c 2008-08-20 16:34:57 +10:00
Makefile powerpc: Enforce a non-spe kernel build even on broken compilers 2008-09-15 11:08:41 -07:00