[Intel-gfx] [PATCH i-g-t 1/5] lib/igt_kms: Don't disable exit handlers around set_vt_mode

Daniel Vetter daniel.vetter at ffwll.ch
Thu Feb 18 12:39:25 UTC 2016


This was originally added to work around a race, but then that's
broken now. And set_vt_mode generally never results in a test binary
crash, so overkill.

I want to get rid of this interface since I spotted some abuse.

Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
---
 lib/igt_kms.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 90c8da7a3772..b483662f792a 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -351,9 +351,7 @@ void kmstest_set_vt_graphics_mode(void)
 
 	igt_install_exit_handler((igt_exit_handler_t) kmstest_restore_vt_mode);
 
-	igt_disable_exit_handler();
 	ret = set_vt_mode(KD_GRAPHICS);
-	igt_enable_exit_handler();
 
 	igt_assert(ret >= 0);
 	orig_vt_mode = ret;
-- 
2.7.0



More information about the Intel-gfx mailing list