summaryrefslogtreecommitdiff
path: root/tools/testing/radix-tree/xarray.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2021-04-13 15:14:37 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-04-13 15:14:37 -0300
commit473b2922c7e54260268c9bb037d2ff9f327422ab (patch)
tree40cee01f50cb0f285399c406ceba7b5acb58e486 /tools/testing/radix-tree/xarray.c
parentda66658638c947cab0fb157289f03698453ff8d5 (diff)
parent89698becf06d341a700913c3d89ce2a914af69a2 (diff)
Merge remote-tracking branch 'torvalds/master' into perf/core
To pick up fixes from perf/urgent that got into upstream. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/testing/radix-tree/xarray.c')
-rw-r--r--tools/testing/radix-tree/xarray.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/radix-tree/xarray.c b/tools/testing/radix-tree/xarray.c
index e61e43efe463..f20e12cbbfd4 100644
--- a/tools/testing/radix-tree/xarray.c
+++ b/tools/testing/radix-tree/xarray.c
@@ -25,11 +25,13 @@ void xarray_tests(void)
int __weak main(void)
{
+ rcu_register_thread();
radix_tree_init();
xarray_tests();
radix_tree_cpu_dead(1);
rcu_barrier();
if (nr_allocated)
printf("nr_allocated = %d\n", nr_allocated);
+ rcu_unregister_thread();
return 0;
}