eina_cpu: Add an internal api for getting a random fast core
authorDerek Foreman <derekf@osg.samsung.com>
Thu, 15 Sep 2016 21:02:10 +0000 (16:02 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 16 Sep 2016 19:10:49 +0000 (14:10 -0500)
commit13da63d26052b2839f2605fe20193a0da7fcea84
tree3355052703591ab61459cc1fca7b96905d9f0754
parent1881b0d34302b8c29d4b086715eeda9e576ee60a
eina_cpu: Add an internal api for getting a random fast core

In a big.LITTLE ARM system cores can have different capabilities.  This
gives an internal API that randomly returns the core id of any of the
system's fastest cores.

On systems where all cores are the same, it will return any available core.

If we don't have cpufreq support we just return 0
src/Makefile_Eina.am
src/lib/eina/eina_cpu.c
src/lib/eina/eina_cpu_private.h [new file with mode: 0644]