diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-15 12:40:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-15 12:40:05 -0400 |
commit | 2ed0e21b30b53d3a94e204196e523e6c8f732b56 (patch) | |
tree | de2635426477d86338a9469ce09ba0626052288f /include/linux/sched.h | |
parent | 0fa213310cd8fa7a51071cdcf130e26fa56e9549 (diff) | |
parent | 9cbc1cb8cd46ce1f7645b9de249b2ce8460129bb (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1244 commits)
pkt_sched: Rename PSCHED_US2NS and PSCHED_NS2US
ipv4: Fix fib_trie rebalancing
Bluetooth: Fix issue with uninitialized nsh.type in DTL-1 driver
Bluetooth: Fix Kconfig issue with RFKILL integration
PIM-SM: namespace changes
ipv4: update ARPD help text
net: use a deferred timer in rt_check_expire
ieee802154: fix kconfig bool/tristate muckup
bonding: initialization rework
bonding: use is_zero_ether_addr
bonding: network device names are case sensative
bonding: elminate bad refcount code
bonding: fix style issues
bonding: fix destructor
bonding: remove bonding read/write semaphore
bonding: initialize before registration
bonding: bond_create always called with default parameters
x_tables: Convert printk to pr_err
netfilter: conntrack: optional reliable conntrack event delivery
list_nulls: add hlist_nulls_add_head and hlist_nulls_del
...
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 4896fdfec913..fea9d188dbff 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2212,6 +2212,12 @@ static inline int test_tsk_need_resched(struct task_struct *tsk) | |||
2212 | return unlikely(test_tsk_thread_flag(tsk,TIF_NEED_RESCHED)); | 2212 | return unlikely(test_tsk_thread_flag(tsk,TIF_NEED_RESCHED)); |
2213 | } | 2213 | } |
2214 | 2214 | ||
2215 | static inline int restart_syscall(void) | ||
2216 | { | ||
2217 | set_tsk_thread_flag(current, TIF_SIGPENDING); | ||
2218 | return -ERESTARTNOINTR; | ||
2219 | } | ||
2220 | |||
2215 | static inline int signal_pending(struct task_struct *p) | 2221 | static inline int signal_pending(struct task_struct *p) |
2216 | { | 2222 | { |
2217 | return unlikely(test_tsk_thread_flag(p,TIF_SIGPENDING)); | 2223 | return unlikely(test_tsk_thread_flag(p,TIF_SIGPENDING)); |