tools/intel_residency: use setitimer instead of {,u}alarm
tools/intel_residency: use setitimer instead of {,u}alarm

It seems that Android doesn't have ualarm(). Let's use setitimer()
instead.

The tool still won't compile on Android due to igt_fb requiring Cairo,
but we're supposed to solve this in another patch since our igt_fb
calls don't actually require Cairo.

Reported-by: Derek Morton <6938752c4b6118c105a32254fd77180dc6bea19f@intel.com>
Tested-by: Derek Morton <6938752c4b6118c105a32254fd77180dc6bea19f@intel.com>
Acked-by: Daniel Vetter <c1b6782c4af8f0673da8923a0702a1832e5940f4@ffwll.ch>
Signed-off-by: Paulo Zanoni <cc0e04a2103c45cd195651d976f79813d0f66bdf@intel.com>

tiagovignatti/intel-gpu-tools,tiagovignatti/intel-gpu-tools,tiagovignatti/intel-gpu-tools,tiagovignatti/intel-gpu-tools