diff options
Diffstat (limited to 'include/asm-s390/system.h')
-rw-r--r-- | include/asm-s390/system.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/include/asm-s390/system.h b/include/asm-s390/system.h index e3cb3ce1d24a..b4a9f05a93d6 100644 --- a/include/asm-s390/system.h +++ b/include/asm-s390/system.h | |||
@@ -104,29 +104,18 @@ static inline void restore_access_regs(unsigned int *acrs) | |||
104 | prev = __switch_to(prev,next); \ | 104 | prev = __switch_to(prev,next); \ |
105 | } while (0) | 105 | } while (0) |
106 | 106 | ||
107 | #define prepare_arch_switch(rq, next) do { } while(0) | ||
108 | #define task_running(rq, p) ((rq)->curr == (p)) | ||
109 | |||
110 | #ifdef CONFIG_VIRT_CPU_ACCOUNTING | 107 | #ifdef CONFIG_VIRT_CPU_ACCOUNTING |
111 | extern void account_user_vtime(struct task_struct *); | 108 | extern void account_user_vtime(struct task_struct *); |
112 | extern void account_system_vtime(struct task_struct *); | 109 | extern void account_system_vtime(struct task_struct *); |
113 | |||
114 | #define finish_arch_switch(rq, prev) do { \ | ||
115 | set_fs(current->thread.mm_segment); \ | ||
116 | spin_unlock(&(rq)->lock); \ | ||
117 | account_system_vtime(prev); \ | ||
118 | local_irq_enable(); \ | ||
119 | } while (0) | ||
120 | |||
121 | #else | 110 | #else |
111 | #define account_system_vtime(prev) do { } while (0) | ||
112 | #endif | ||
122 | 113 | ||
123 | #define finish_arch_switch(rq, prev) do { \ | 114 | #define finish_arch_switch(rq, prev) do { \ |
124 | set_fs(current->thread.mm_segment); \ | 115 | set_fs(current->thread.mm_segment); \ |
125 | spin_unlock_irq(&(rq)->lock); \ | 116 | account_system_vtime(prev); \ |
126 | } while (0) | 117 | } while (0) |
127 | 118 | ||
128 | #endif | ||
129 | |||
130 | #define nop() __asm__ __volatile__ ("nop") | 119 | #define nop() __asm__ __volatile__ ("nop") |
131 | 120 | ||
132 | #define xchg(ptr,x) \ | 121 | #define xchg(ptr,x) \ |