Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108260
b: refs/heads/master
c: 070cb06
h: refs/heads/master
v: v3
  • Loading branch information
Uwe Kleine-König authored and Linus Torvalds committed Aug 12, 2008
1 parent 55670ce commit 4e4b036
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 29a6d39bf3a890ad1d29e66baa9f4bc8d9334f3a
refs/heads/master: 070cb06593006e7d565d4763380f3edd8dbdc134
14 changes: 7 additions & 7 deletions trunk/include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ struct completion;
struct pt_regs;
struct user;

#ifdef CONFIG_PREEMPT_VOLUNTARY
extern int _cond_resched(void);
# define might_resched() _cond_resched()
#else
# define might_resched() do { } while (0)
#endif

/**
* might_sleep - annotation for functions that can sleep
*
Expand All @@ -118,13 +125,6 @@ struct user;
* be bitten later when the calling function happens to sleep when it is not
* supposed to.
*/
#ifdef CONFIG_PREEMPT_VOLUNTARY
extern int _cond_resched(void);
# define might_resched() _cond_resched()
#else
# define might_resched() do { } while (0)
#endif

#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP
void __might_sleep(char *file, int line);
# define might_sleep() \
Expand Down

0 comments on commit 4e4b036

Please sign in to comment.