Ignore:
Timestamp:
Jan 16, 2021, 10:44:28 PM (5 years ago)
Author:
Paul Smedley
Message:

Move remaining functions from compat_22.h into appropriate linux header and remove legacy header; remove unused adriver.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/include/linux/rwsem.h

    r615 r646  
    33#ifndef _LINUX_RWSEM_H
    44#define _LINUX_RWSEM_H
     5/* rw_semaphore - replaced with mutex */
     6#define rw_semaphore semaphore
     7#define init_rwsem(x) init_MUTEX(x)
     8#define DECLARE_RWSEM(x) DECLARE_MUTEX(x)
     9#define down_read(x) down(x)
     10#define down_write(x) down(x)
     11#define up_read(x) up(x)
     12#define up_write(x) up(x)
     13
    514static inline int down_write_trylock(struct rw_semaphore *sem) {return 0;}
    6 #define init_rwsem(x) init_MUTEX(x)
    715#endif /* _LINUX_RWSEM_H */
Note: See TracChangeset for help on using the changeset viewer.