eina_thread: Don't ensure affinity core is lower than number of cpus
authorDerek Foreman <derekf@osg.samsung.com>
Thu, 15 Sep 2016 21:09:00 +0000 (16:09 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 16 Sep 2016 19:10:49 +0000 (14:10 -0500)
commit0f98e1c6d324a7d17b6e7bdb7b1b41d3a2db9954
tree04f87df40247ad256876ea3350dce0308e6f82c2
parenta17ac66f0a0b089dde0b2e550523b0d59ec97f52
eina_thread: Don't ensure affinity core is lower than number of cpus

CPUs can be turned off after boot leading to a sparse mapping of core ids.

For example, if I turn off the first four cores on an exynos 5422 (these
are the low speed cores) then the high speed cores are still numbered 4-7
but there are only 4 cores present.

In that situation using affinity_core % num_cpus will prevent ever being
able to set affinity at all.

Just remove the pointless check and let the user set whatever core id they
want.
src/lib/eina/eina_thread.c