Skip to content

RFC CodeSamples: Cleanups and fixes

Akira Yokosawa perfbook 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest2 patches 6 repliesIn review
  2. v1 RFC4 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2CodeSamples: Use 'intptr_t' to be compatible with 'void *'CodeSamples/SMPdesign/matmul.c CodeSamples/SMPdesign/smpalloc.c CodeSamples/defer/gettimestampmp.c +1 more+7 -70 replies
2/2CodeSamples/defer: Add compiler barriers in gettimestampmp.cCodeSamples/defer/gettimestampmp.c+3 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC PATCH v2 0/2] CodeSamples: Cleanups and fixes

From 489b5e3bdeba2f9b733dbe3d85390368dd159174 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Tue, 30 May 2017 20:44:52 +0900
Subject: [RFC PATCH v2 0/2] CodeSamples: Cleanups and fixes

Hi Paul,

This is the respin of the latter two patches of v1. I'm keeping RFC because of some questions.

"long" -> "intptr_t" changes in Patch 1 have no effect on a platform where "long" and "intptr_t" have the same width, but I think they are good in portability POV.

WRITE_ONCE() in Patch 2 is placed under the assignment to the array because I could not translate post increment in any other way. Does the WRITE_ONCE() ensure the outer "while" capture the value?

Thanks, Akira

Signature · 12 lines
Akira Yokosawa (2):
  CodeSamples: Use 'intptr_t' to be compatible with 'void *'
  CodeSamples/defer: Add compiler barriers in gettimestampmp.c

 CodeSamples/SMPdesign/matmul.c     | 4 ++--
 CodeSamples/SMPdesign/smpalloc.c   | 4 ++--
 CodeSamples/defer/gettimestampmp.c | 7 ++++---
 CodeSamples/intro/threadcreate.c   | 4 ++--
 4 files changed, 10 insertions(+), 9 deletions(-)

-- 
2.7.4