-
Jeffrey Lee authored
Detail: h/spinrw - Fix header file to use the correct names for the write try lock & sleep lock functions. s/spinrw - Add new spinrw_write_to_read function, which atomically converts a held write lock to a read lock. This can be useful if you have a long routine which needs to update some state and then perform extra actions based on the new value - if the write occurs at the start of the routine, the write access can then be downgraded to read access, allowing interrupts + concurrent read access, while still making sure the data hasn't changed from what was written. Admin: Tested on OMAP3, OMAP4 Version 0.05. Tagged as 'SyncLib-0_05'
a8d592ef