]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Add eeh_pe_state sysfs entry
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Tue, 30 Sep 2014 02:38:51 +0000 (12:38 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 30 Sep 2014 07:15:06 +0000 (17:15 +1000)
commitc8dbfd64899e92e8526528bee6ab4896ae61722f
tree3e024b8b62a36894d8c905a4c95d9889e906fd1e
parent75c38ad48d959156135094eed0142e40231123fa
powerpc/eeh: Add eeh_pe_state sysfs entry

The patch adds sysfs entry "eeh_pe_state". Reading on it returns
the PE's state while writing to it clears the frozen state. It's
used to check or clear the PE frozen state from userland for
debugging purpose.

The patch also replaces printk(KERN_WARNING ...) with pr_warn() in
eeh_sysfs.c

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh_sysfs.c