aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/xilinx-spi.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2019-08-14 20:12:55 +0300
committerLen Brown <len.brown@intel.com>2019-08-31 14:48:39 -0400
commitc026c23629b825100fd4b8223227d9a395f9a56b (patch)
tree85a9ea7e70e945eee70439af4c9834fb874ae0be /drivers/fpga/xilinx-spi.c
parentd93ea567fc4eec2d3581015e23d2c555f8b393ba (diff)
tools/power turbostat: read from pipes too
Commit '47936f944e78 tools/power turbostat: fix printing on input' make a valid fix, but it completely disabled piped stdin support, which is a valuable use-case. Indeed, if stdin is a pipe, turbostat won't read anything from it, so it becomes impossible to get turbostat output at user-defined moments, instead of the regular intervals. There is no reason why this should works for terminals, but not for pipes. This patch improves the situation. Instead of ignoring pipes, we read data from them but gracefully handle the EOF case. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions