lib: keep a list of modified connectors to reset
authorThomas Wood <thomas.wood@intel.com>
Thu, 4 Sep 2014 10:35:01 +0000 (11:35 +0100)
committerThomas Wood <thomas.wood@intel.com>
Fri, 5 Sep 2014 15:52:51 +0000 (16:52 +0100)
commitf675f6771b1a3eaca6981ad78d2f1521f379347a
tree78176e16c66f4de20fffc3b204aa9a60eeba0c0c
parent48da0e69adbf086c560a4e3175a16b85a1662bbd
lib: keep a list of modified connectors to reset

Avoid calling functions in igt_reset_connectors that are not safe to use
in signal handlers by keeping a list of connectors that have been
modified, instead of enumerating all connectors.

v2: add space for a sentinel NULL value on forced_connectors and print a
    warning when the connector limit is reached (Chris Wilson)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83498
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
lib/igt_kms.c