From: Paul Eggert Date: Sat, 11 Dec 2010 04:52:04 +0000 (-0800) Subject: sort: comment fix X-Git-Tag: v8.8~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1f700355630c2d6e22ebff9de5f15b10aa14185;p=thirdparty%2Fcoreutils.git sort: comment fix * src/sort.c: Comment fix re spin locks. --- diff --git a/src/sort.c b/src/sort.c index 9cfc8144f8..36e3b19fba 100644 --- a/src/sort.c +++ b/src/sort.c @@ -3149,10 +3149,7 @@ compare_nodes (void const *a, void const *b) return nodea->level < nodeb->level; } -/* Lock a merge tree NODE. - Spin locks were seen to perform better than mutexes when the number - of threads is limited to the number of processors, assuming 'sort' - never waits when writing to stdout. */ +/* Lock a merge tree NODE. */ static inline void lock_node (struct merge_node *node) @@ -4567,8 +4564,6 @@ main (int argc, char **argv) } else { - /* If NTHREADS > number of cores on the machine, spinlocking - could be wasteful. */ unsigned long int np2 = num_processors (NPROC_CURRENT_OVERRIDABLE); if (!nthreads || nthreads > np2) nthreads = np2;