93dc2d
Downstream-only patch to disable rseq by default.  This is necessary
93dc2d
because CRIU does not yet support rseq:
93dc2d
93dc2d
  criu: Implement rseq support
93dc2d
  <https://bugzilla.redhat.com/show_bug.cgi?id=2033446>
93dc2d
93dc2d
diff --git a/manual/tunables.texi b/manual/tunables.texi
93dc2d
index 28ff502990c2a10f..f559c44dcec4624b 100644
93dc2d
--- a/manual/tunables.texi
93dc2d
+++ b/manual/tunables.texi
93dc2d
@@ -425,11 +425,13 @@ The value is measured in bytes.  The default is @samp{41943040}
93dc2d
 @end deftp
93dc2d
 
93dc2d
 @deftp Tunable glibc.pthread.rseq
93dc2d
-The @code{glibc.pthread.rseq} tunable can be set to @samp{0}, to disable
93dc2d
-restartable sequences support in @theglibc{}.  This enables applications
93dc2d
-to perform direct restartable sequence registration with the kernel.
93dc2d
-The default is @samp{1}, which means that @theglibc{} performs
93dc2d
-registration on behalf of the application.
93dc2d
+The @code{glibc.pthread.rseq} tunable can be set to @samp{1}, to enable
93dc2d
+restartable sequences support.  @Theglibc{} uses this to optimize the
93dc2d
+@code{sched_getcpu} function.
93dc2d
+
93dc2d
+The default is @samp{0}, which means that applications can perform
93dc2d
+restartable sequences registration, but @code{sched_getcpu} is not
93dc2d
+accelerated.
93dc2d
 
93dc2d
 Restartable sequences are a Linux-specific extension.
93dc2d
 @end deftp
93dc2d
diff --git a/sysdeps/nptl/dl-tunables.list b/sysdeps/nptl/dl-tunables.list
93dc2d
index d24f4be0d08ba407..df2a39ce01858d3b 100644
93dc2d
--- a/sysdeps/nptl/dl-tunables.list
93dc2d
+++ b/sysdeps/nptl/dl-tunables.list
93dc2d
@@ -31,7 +31,7 @@ glibc {
93dc2d
       type: INT_32
93dc2d
       minval: 0
93dc2d
       maxval: 1
93dc2d
-      default: 1
93dc2d
+      default: 0
93dc2d
     }
93dc2d
   }
93dc2d
 }