mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 15:42:19 +02:00
wakelock.h: fix for v2.6.36
This commit is contained in:
parent
eb97899693
commit
bbb4a5e933
|
|
@ -72,6 +72,7 @@ int wake_lock_active(struct wake_lock *lock);
|
|||
* number of jiffies until all active wake locks time out.
|
||||
*/
|
||||
long has_wake_lock(int type);
|
||||
void print_active_wake_locks(int type);
|
||||
|
||||
#else
|
||||
|
||||
|
|
@ -84,6 +85,7 @@ static inline void wake_unlock(struct wake_lock *lock) {}
|
|||
|
||||
static inline int wake_lock_active(struct wake_lock *lock) { return 0; }
|
||||
static inline long has_wake_lock(int type) { return 0; }
|
||||
static inline void print_active_wake_locks(int type) {}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user