[PATCH -perfbook v2] whymb: Fix typo in variable name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From ff659ff1a4927bf0ebfbe5a28a3edc208c688e2d Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@xxxxxxxxx>
Date: Mon, 7 Dec 2020 07:36:07 +0900
Subject: [PATCH -perfbook v2] whymb: Fix typo in variable name

It is the variable "b" that CPUs 1 and 2 observe in Listing C.3.
This typo was pointed out by Motohiro in his Japanese translation [1].

[1]: https://sites.google.com/site/kandamotohiro/perfbook-d/perfbookappendixc

Also add a couple of nbsps ("CPU~1 and 2" -> "CPU~1 and~2").

Cc: Motohiro Kanda <kanda.motohiro@xxxxxxxxx>
Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
---
v1 -> v2: Add a couple of nbsps

 appendix/whymb/whymemorybarriers.tex | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/appendix/whymb/whymemorybarriers.tex b/appendix/whymb/whymemorybarriers.tex
index e6c24f6e..1dae3fc5 100644
--- a/appendix/whymb/whymemorybarriers.tex
+++ b/appendix/whymb/whymemorybarriers.tex
@@ -1506,12 +1506,12 @@ All variables are initially zero.
 
 Note that neither CPU~1 nor CPU~2 can proceed to line~5 until they see
 CPU~0's assignment to ``b'' on line~3.
-Once CPU~1 and 2 have executed their memory barriers on line~4, they
+Once CPU~1 and~2 have executed their memory barriers on line~4, they
 are both guaranteed to see all assignments by CPU~0 preceding its memory
 barrier on line~2.
-Similarly, CPU~0's memory barrier on line~8 pairs with those of CPUs~1 and 2
+Similarly, CPU~0's memory barrier on line~8 pairs with those of CPUs~1 and~2
 on line~4, so that CPU~0 will not execute the assignment to ``e'' on
-line~9 until after its assignment to ``a'' is visible to both of the
+line~9 until after its assignment to ``b'' is visible to both of the
 other CPUs.
 Therefore, CPU~2's assertion on line~9 is guaranteed \emph{not} to fire.
 
-- 
2.17.1





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux