| .. | .. |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | #define setup_thread_stack(new,old) do { } while(0) |
|---|
| 25 | 25 | |
|---|
| 26 | | -static inline unsigned long *end_of_stack(const struct task_struct *task) |
|---|
| 26 | +static __always_inline unsigned long *end_of_stack(const struct task_struct *task) |
|---|
| 27 | 27 | { |
|---|
| 28 | 28 | #ifdef CONFIG_STACK_GROWSUP |
|---|
| 29 | 29 | return (unsigned long *)((unsigned long)task->stack + THREAD_SIZE) - 1; |
|---|
| .. | .. |
|---|
| 65 | 65 | #ifdef CONFIG_THREAD_INFO_IN_TASK |
|---|
| 66 | 66 | static inline void *try_get_task_stack(struct task_struct *tsk) |
|---|
| 67 | 67 | { |
|---|
| 68 | | - return atomic_inc_not_zero(&tsk->stack_refcount) ? |
|---|
| 68 | + return refcount_inc_not_zero(&tsk->stack_refcount) ? |
|---|
| 69 | 69 | task_stack_page(tsk) : NULL; |
|---|
| 70 | 70 | } |
|---|
| 71 | 71 | |
|---|