Changeset 407 for trunk/hal/tsar_mips32/drivers/soclib_bdv.c
- Timestamp:
- Nov 7, 2017, 3:08:12 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/drivers/soclib_bdv.c
r296 r407 104 104 105 105 // waiting policy depends on the command type 106 // - for IOC_READ / IOC_WRITE commands, this function is called by the server thread 107 // - for IOC_SYNC_READ command, this function is directly called by the client thread 106 108 107 if( cmd_type == IOC_SYNC_READ ) //polling policy109 if( cmd_type == IOC_SYNC_READ ) // status polling policy 108 110 { 109 111 uint32_t status; … … 131 133 { 132 134 thread_block( CURRENT_THREAD , THREAD_BLOCKED_DEV_ISR ); 133 sched_yield( NULL ); 135 sched_yield(); 136 137 // the IO operation status is reported in the command by the ISR 134 138 } 135 139
Note: See TracChangeset
for help on using the changeset viewer.