diff options
Diffstat (limited to 'include/linux/sched.h')
| -rw-r--r-- | include/linux/sched.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 26a2e6122734..18f197223ebd 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -252,7 +252,7 @@ extern char ___assert_task_state[1 - 2*!!( | |||
| 252 | #define set_task_state(tsk, state_value) \ | 252 | #define set_task_state(tsk, state_value) \ |
| 253 | do { \ | 253 | do { \ |
| 254 | (tsk)->task_state_change = _THIS_IP_; \ | 254 | (tsk)->task_state_change = _THIS_IP_; \ |
| 255 | set_mb((tsk)->state, (state_value)); \ | 255 | smp_store_mb((tsk)->state, (state_value)); \ |
| 256 | } while (0) | 256 | } while (0) |
| 257 | 257 | ||
| 258 | /* | 258 | /* |
| @@ -274,7 +274,7 @@ extern char ___assert_task_state[1 - 2*!!( | |||
| 274 | #define set_current_state(state_value) \ | 274 | #define set_current_state(state_value) \ |
| 275 | do { \ | 275 | do { \ |
| 276 | current->task_state_change = _THIS_IP_; \ | 276 | current->task_state_change = _THIS_IP_; \ |
| 277 | set_mb(current->state, (state_value)); \ | 277 | smp_store_mb(current->state, (state_value)); \ |
| 278 | } while (0) | 278 | } while (0) |
| 279 | 279 | ||
| 280 | #else | 280 | #else |
| @@ -282,7 +282,7 @@ extern char ___assert_task_state[1 - 2*!!( | |||
| 282 | #define __set_task_state(tsk, state_value) \ | 282 | #define __set_task_state(tsk, state_value) \ |
| 283 | do { (tsk)->state = (state_value); } while (0) | 283 | do { (tsk)->state = (state_value); } while (0) |
| 284 | #define set_task_state(tsk, state_value) \ | 284 | #define set_task_state(tsk, state_value) \ |
| 285 | set_mb((tsk)->state, (state_value)) | 285 | smp_store_mb((tsk)->state, (state_value)) |
| 286 | 286 | ||
| 287 | /* | 287 | /* |
| 288 | * set_current_state() includes a barrier so that the write of current->state | 288 | * set_current_state() includes a barrier so that the write of current->state |
| @@ -298,7 +298,7 @@ extern char ___assert_task_state[1 - 2*!!( | |||
| 298 | #define __set_current_state(state_value) \ | 298 | #define __set_current_state(state_value) \ |
| 299 | do { current->state = (state_value); } while (0) | 299 | do { current->state = (state_value); } while (0) |
| 300 | #define set_current_state(state_value) \ | 300 | #define set_current_state(state_value) \ |
| 301 | set_mb(current->state, (state_value)) | 301 | smp_store_mb(current->state, (state_value)) |
| 302 | 302 | ||
| 303 | #endif | 303 | #endif |
| 304 | 304 | ||
