1
0
mirror of https://github.com/ponces/treble_aosp.git synced 2024-11-25 04:26:24 +00:00
treble_aosp/patches/trebledroid/platform_frameworks_native/0012-Disable-gpuservice-on-old-BPF-less-kernel.patch
2024-08-18 01:50:22 +01:00

26 lines
829 B
Diff

From 781e66a1e51e184970de933428825d2b4cc958bb Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Tue, 7 May 2024 22:34:40 +0000
Subject: [PATCH 12/14] Disable gpuservice on old BPF-less kernel
Change-Id: I8e1626e2e9d12ee0dc03d758799bc88085899476
---
services/gpuservice/gpumem/GpuMem.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/services/gpuservice/gpumem/GpuMem.cpp b/services/gpuservice/gpumem/GpuMem.cpp
index 141fe021ee..90b8b5c52d 100644
--- a/services/gpuservice/gpumem/GpuMem.cpp
+++ b/services/gpuservice/gpumem/GpuMem.cpp
@@ -48,6 +48,7 @@ void GpuMem::initialize() {
if (fd < 0) {
ALOGE("Failed to retrieve pinned program from %s [%d(%s)]", kGpuMemTotalProgPath, errno,
strerror(errno));
+ while(true) sleep(1);
return;
}
--
2.34.1