android: st/mesa: fix building error due to sched_getcpu()

Android has cpufeatures library but pinning of threads is not supported
PIPE_OS_LINUX code path causes build error due to sched_getcpu() unavailable
thus we need to avoid setting HAVE_SCHED_GETCPU for Android

Fixes: 48f2160 ("st/mesa: regularly re-pin driver threads to the CCX where the app thread is")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Mauro Rossi 2018-12-01 00:42:40 +01:00
parent 4f74580d30
commit 37a2072e97
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@
#include "draw/draw_context.h"
#include "cso_cache/cso_context.h"
#ifdef PIPE_OS_LINUX
#if defined(PIPE_OS_LINUX) && !defined(ANDROID)
#include <sched.h>
#define HAVE_SCHED_GETCPU 1
#else