File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ use core::time::Duration;
1818
1919use kernel:: {
2020 c_str,
21- delay:: coarse_sleep,
2221 error:: code:: * ,
2322 macros:: versions,
2423 prelude:: * ,
@@ -269,8 +268,6 @@ pub(crate) trait GpuManager: Send + Sync {
269268 ) ;
270269 /// Acknowledge a Buffer grow op.
271270 fn ack_grow ( & self , buffer_slot : u32 , vm_slot : u32 , counter : u32 ) ;
272- /// Wait for the GPU to become idle and power off.
273- fn wait_for_poweroff ( & self , timeout : usize ) -> Result ;
274271 /// Send a firmware control command (secure cache flush).
275272 fn fwctl ( & self , msg : fw:: channels:: FwCtlMsg ) -> Result ;
276273 /// Get the static GPU configuration for this SoC.
@@ -1453,18 +1450,6 @@ impl GpuManager for GpuManager::ver {
14531450 }
14541451 }
14551452
1456- fn wait_for_poweroff ( & self , timeout : usize ) -> Result {
1457- self . initdata . runtime_pointers . hwdata_a . with ( |raw, _inner| {
1458- for _i in 0 ..timeout {
1459- if raw. pwr_status . load ( Ordering :: Relaxed ) == 4 {
1460- return Ok ( ( ) ) ;
1461- }
1462- coarse_sleep ( Duration :: from_millis ( 1 ) ) ;
1463- }
1464- Err ( ETIMEDOUT )
1465- } )
1466- }
1467-
14681453 fn fwctl ( & self , msg : fw:: channels:: FwCtlMsg ) -> Result {
14691454 if self . is_crashed ( ) {
14701455 return Err ( ENODEV ) ;
You can’t perform that action at this time.
0 commit comments