Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools/memory-model: Avoid duplicating herdtools versions

Currently, herdtools version information appears no fewer than three
times in the LKMM source, which is difficult to maintain. This commit
therefore places the required version in one place, namely the
tools/memory-model/README file.

Signed-off-by: Andrea Parri <andrea.parri@amarulasolutions.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>

authored by

Andrea Parri and committed by
Paul E. McKenney
034fb712 9393998e

+6 -7
+6 -2
tools/memory-model/README
··· 20 20 REQUIREMENTS 21 21 ============ 22 22 23 - Version 7.49 of the "herd7" and "klitmus7" tools must be downloaded 24 - separately: 23 + Version 7.52 or higher of the "herd7" and "klitmus7" tools must be 24 + downloaded separately: 25 25 26 26 https://github.com/herd/herdtools7 27 27 28 28 See "herdtools7/INSTALL.md" for installation instructions. 29 + 30 + Note that although these tools usually provide backwards compatibility, 31 + this is not absolutely guaranteed. Therefore, if a later version does 32 + not work, please try using the exact version called out above. 29 33 30 34 31 35 ==================
-2
tools/memory-model/linux-kernel.cat
··· 1 1 // SPDX-License-Identifier: GPL-2.0+ 2 2 (* 3 - * Requires herd version 7.51+6 or higher. 4 - * 5 3 * Copyright (C) 2015 Jade Alglave <j.alglave@ucl.ac.uk>, 6 4 * Copyright (C) 2016 Luc Maranget <luc.maranget@inria.fr> for Inria 7 5 * Copyright (C) 2017 Alan Stern <stern@rowland.harvard.edu>,
-3
tools/memory-model/lock.cat
··· 6 6 7 7 (* 8 8 * Generate coherence orders and handle lock operations 9 - * 10 - * Warning: spin_is_locked() crashes herd7 versions strictly before 7.48. 11 - * spin_is_locked() is functional from herd7 version 7.49. 12 9 *) 13 10 14 11 include "cross.cat"