summaryrefslogtreecommitdiff
path: root/src/lib/evas/common
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-09-20 11:33:33 -0500
committerDerek Foreman <derekf@osg.samsung.com>2016-09-20 11:38:57 -0500
commite2875cefc49768f919919fbfa478f81570168688 (patch)
treee67252283f4c8bc2c34c81cd40c75ed32437bbf3 /src/lib/evas/common
parent58d3328d80aec2249b681e0d791e562a2b399c47 (diff)
eina_cpu, evas: Remove _eina_cpu_fast_core_get, don't set render thread affinity
We've decided it would be best to just let the scheduler do its job.
Diffstat (limited to 'src/lib/evas/common')
-rw-r--r--src/lib/evas/common/evas_thread_render.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/lib/evas/common/evas_thread_render.c b/src/lib/evas/common/evas_thread_render.c
index 3489c5ad08..99c6b95c3c 100644
--- a/src/lib/evas/common/evas_thread_render.c
+++ b/src/lib/evas/common/evas_thread_render.c
@@ -1,5 +1,4 @@
1#include "evas_common_private.h" 1#include "evas_common_private.h"
2#include "eina_cpu_private.h"
3 2
4#include <assert.h> 3#include <assert.h>
5 4
@@ -126,7 +125,6 @@ out:
126void 125void
127evas_thread_init(void) 126evas_thread_init(void)
128{ 127{
129 int core;
130 if (init_count++) return; 128 if (init_count++) return;
131 129
132 eina_threads_init(); 130 eina_threads_init();
@@ -138,16 +136,9 @@ evas_thread_init(void)
138 if (!eina_condition_new(&evas_thread_queue_condition, &evas_thread_queue_lock)) 136 if (!eina_condition_new(&evas_thread_queue_condition, &evas_thread_queue_lock))
139 CRI("Could not create draw thread condition"); 137 CRI("Could not create draw thread condition");
140 138
141 core = _eina_cpu_fast_core_get(); 139 if (!eina_thread_create(&evas_thread_worker, EINA_THREAD_NORMAL, -1,
142 /* Keep previous behaviour of pinning to core 0 if finding a fast
143 * core fails.
144 */
145 if (core < 0) core = 0;
146 if (!eina_thread_create(&evas_thread_worker, EINA_THREAD_NORMAL, core,
147 evas_thread_worker_func, NULL)) 140 evas_thread_worker_func, NULL))
148 if (!eina_thread_create(&evas_thread_worker, EINA_THREAD_NORMAL, -1, 141 CRI("Could not create draw thread");
149 evas_thread_worker_func, NULL))
150 CRI("Could not create draw thread");
151} 142}
152 143
153void 144void