summaryrefslogtreecommitdiff
path: root/mali_kbase/backend/gpu/mali_kbase_js_backend.c
diff options
context:
space:
mode:
authorJack Diver <diverj@google.com>2023-11-22 17:15:57 +0000
committerJack Diver <diverj@google.com>2024-02-28 18:24:31 +0000
commitfffc58d2b4f70d6655f5022c026e0614df4411e4 (patch)
treeca76ed2789864257f1673d619d851222a8dc51f3 /mali_kbase/backend/gpu/mali_kbase_js_backend.c
parentee7d8af92a5ddd8645dc4ec689e3eab8a461bf53 (diff)
downloadgpu-fffc58d2b4f70d6655f5022c026e0614df4411e4.tar.gz
mali_pixel: Periodically read ACPM GPU signal
Use ACPM GPU signal to make enable/disable decisions for the SLC partition. Currently, the signal is sampled during scheduling tick. Bug: 313458962 Test: gfxbench Signed-off-by: Jack Diver <diverj@google.com> (cherry picked from https://partner-android-review.googlesource.com/q/commit:dec457352147d282921e0ae81ce3a7154e80c64e) Merged-In: Ife0adedf6006daaf17062a0f555d126c1fd45465 Change-Id: Ife0adedf6006daaf17062a0f555d126c1fd45465
Diffstat (limited to 'mali_kbase/backend/gpu/mali_kbase_js_backend.c')
-rw-r--r--mali_kbase/backend/gpu/mali_kbase_js_backend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mali_kbase/backend/gpu/mali_kbase_js_backend.c b/mali_kbase/backend/gpu/mali_kbase_js_backend.c
index be72c4a..304737f 100644
--- a/mali_kbase/backend/gpu/mali_kbase_js_backend.c
+++ b/mali_kbase/backend/gpu/mali_kbase_js_backend.c
@@ -244,6 +244,9 @@ static enum hrtimer_restart timer_callback(struct hrtimer *timer)
spin_unlock_irqrestore(&kbdev->hwaccess_lock, flags);
+ /* Inform platform of scheduling event */
+ kbasep_platform_event_tick_tock(kbdev);
+
return HRTIMER_NORESTART;
}