render_thread: Attempt to set affinity to a random fast core
authorDerek Foreman <derekf@osg.samsung.com>
Mon, 19 Sep 2016 14:39:35 +0000 (09:39 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Mon, 19 Sep 2016 14:40:43 +0000 (09:40 -0500)
commit541b72dcb2aa7a0a09c6b57603da2800d8caac01
tree8c1c37b4fd37d8b6d2af841cb90f5492feffde17
parent2569a8c880773c64857d2e627fafa0daa9a0d47a
render_thread: Attempt to set affinity to a random fast core

We've been pinning the render thread for every EFL process to core 0.
This is a bit silly in the first place, but some big.LITTLE arm systems,
such as exynos 5422, have the LITTLE cores first.

On those systems we put all the render threads on a slow core.

This attempts to fix that by using a random core from the pool of fast
cores.

If we can't determine which cores are fast (ie: we're not on a
linux kernel with cpufreq enabled) then we'll continue doing what we've
always done - pin to core 0.
src/lib/evas/common/evas_thread_render.c