kernel/drivers/gpu/arm/bifrost/platform/rk/mali_kbase_rk.h
.. .. @@ -33,6 +33,8 @@ 33 33 */ 34 34 bool is_powered; 35 35 36 + bool is_regulator_on;37 +36 38 struct kbase_device *kbdev; 37 39 38 40 struct workqueue_struct *power_off_wq; .. .. @@ -48,6 +50,9 @@ 48 50 49 51 /* debug only, the period in ms to count gpu_utilisation. */ 50 52 unsigned int utilisation_period; 53 +54 + /* to protect operations on 'is_powered' and clks, pd, vd of gpu. */55 + struct mutex lock;51 56 }; 52 57 53 58 /*---------------------------------------------------------------------------*/