diff options
Diffstat (limited to 'Documentation/memory-barriers.txt')
-rw-r--r-- | Documentation/memory-barriers.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt index 360841da3744..13feb697271f 100644 --- a/Documentation/memory-barriers.txt +++ b/Documentation/memory-barriers.txt | |||
@@ -1673,7 +1673,7 @@ CPU from reordering them. | |||
1673 | 1673 | ||
1674 | There are some more advanced barrier functions: | 1674 | There are some more advanced barrier functions: |
1675 | 1675 | ||
1676 | (*) set_mb(var, value) | 1676 | (*) smp_store_mb(var, value) |
1677 | 1677 | ||
1678 | This assigns the value to the variable and then inserts a full memory | 1678 | This assigns the value to the variable and then inserts a full memory |
1679 | barrier after it, depending on the function. It isn't guaranteed to | 1679 | barrier after it, depending on the function. It isn't guaranteed to |
@@ -1985,7 +1985,7 @@ after it has altered the task state: | |||
1985 | CPU 1 | 1985 | CPU 1 |
1986 | =============================== | 1986 | =============================== |
1987 | set_current_state(); | 1987 | set_current_state(); |
1988 | set_mb(); | 1988 | smp_store_mb(); |
1989 | STORE current->state | 1989 | STORE current->state |
1990 | <general barrier> | 1990 | <general barrier> |
1991 | LOAD event_indicated | 1991 | LOAD event_indicated |
@@ -2026,7 +2026,7 @@ between the STORE to indicate the event and the STORE to set TASK_RUNNING: | |||
2026 | CPU 1 CPU 2 | 2026 | CPU 1 CPU 2 |
2027 | =============================== =============================== | 2027 | =============================== =============================== |
2028 | set_current_state(); STORE event_indicated | 2028 | set_current_state(); STORE event_indicated |
2029 | set_mb(); wake_up(); | 2029 | smp_store_mb(); wake_up(); |
2030 | STORE current->state <write barrier> | 2030 | STORE current->state <write barrier> |
2031 | <general barrier> STORE current->state | 2031 | <general barrier> STORE current->state |
2032 | LOAD event_indicated | 2032 | LOAD event_indicated |