From 9dd7e9b6f4c96cc1fd1c930452c7f54c12892b9d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 14 Dec 2017 20:59:38 +0000 Subject: lib/sysfs: Handle EINTR from vfprintf() Some write operations into sysfs may be slow and potentially interrupted by a signal. So handle EINTR by repeating the vfprintf(). A partial is reported back to the caller, as is any other error. Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen