162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (C) 2023 Red Hat Inc, Daniel Bristot de Oliveira <bristot@kernel.org>
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_cistruct timerlat_u_params {
762306a36Sopenharmony_ci	/* timerlat -> timerlat_u: user-space threads can keep running */
862306a36Sopenharmony_ci	int should_run;
962306a36Sopenharmony_ci	/* timerlat_u -> timerlat: all timerlat_u threads left, no reason to continue */
1062306a36Sopenharmony_ci	int stopped_running;
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci	/* threads config */
1362306a36Sopenharmony_ci	cpu_set_t *set;
1462306a36Sopenharmony_ci	char *cgroup_name;
1562306a36Sopenharmony_ci	struct sched_attr *sched_param;
1662306a36Sopenharmony_ci};
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_civoid *timerlat_u_dispatcher(void *data);
19