[Intel-gfx] [PATCH igt 1/2] lib/igt_aux: Add support for various system suspend/resume options

Daniel Vetter daniel at ffwll.ch
Thu Oct 13 14:02:20 UTC 2016


On Wed, Oct 05, 2016 at 12:04:52PM +0300, Imre Deak wrote:
>  /* suspend/hibernate and auto-resume system */
> -void igt_system_suspend_autoresume(void);
> -void igt_system_hibernate_autoresume(void);
> +
> +enum igt_suspend_state {
> +	SUSPEND_STATE_FREEZE,
> +	SUSPEND_STATE_MEM,
> +	SUSPEND_STATE_DISK,
> +
> +	SUSPEND_STATE_NUM,
> +};
> +
> +enum igt_suspend_test {
> +	SUSPEND_TEST_NONE,
> +	SUSPEND_TEST_FREEZER,
> +	SUSPEND_TEST_DEVICES,
> +	SUSPEND_TEST_PLATFORM,
> +	SUSPEND_TEST_PROCESSORS,
> +	SUSPEND_TEST_CORE,
> +
> +	SUSPEND_TEST_NUM,
> +};

Please document them enums too. And link from the functions to the enums
(and make sure it works):

$ ./autogen.sh --enable-gtk-doc
$ make

Thanks, Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the Intel-gfx mailing list