Changeset 636
- Timestamp:
- Jan 6, 2021, 9:38:02 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/alsa-kernel/hda/hdac_controller.c
r629 r636 244 244 unsigned long timeout; 245 245 unsigned long loopcounter; 246 #ifdef TARGET_OS2247 int count = 0;248 #endif249 246 wait_queue_entry_t wait; 250 247 bool warned = false; … … 277 274 if (time_after(jiffies, timeout)) 278 275 break; 279 #ifdef TARGET_OS2280 if (count >= 5000) /* Hack on OS/2 to stop infinite loop as jiffies sometimes don't increment */281 break;282 #endif283 276 #define LOOP_COUNT_MAX 3000 284 277 if (!bus->polling_mode) { … … 298 291 } 299 292 } 300 #ifdef TARGET_OS2301 count++;302 if (count >= 5000) {303 snd_printk(KERN_WARNING "hda_intel: count >= 5000, aborting loop in azx_rirb_get_response\n");304 }305 #endif306 293 #ifndef TARGET_OS2 307 294 if (!bus->polling_mode)
Note:
See TracChangeset
for help on using the changeset viewer.