Commit 3da5a9b7 authored by Tomas Glozar's avatar Tomas Glozar Committed by Wentao Guan
Browse files

Revert "rtla/timerlat_hist: Set OSNOISE_WORKLOAD for kernel threads"

stable inclusion
from stable-v6.6.81
commit 7ec6b4bd29003aa8e0fd058b52ca5e22176bc7d8
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IBX1M5

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7ec6b4bd29003aa8e0fd058b52ca5e22176bc7d8



--------------------------------

This reverts commit 83b74901bdc9b58739193b8ee6989254391b6ba7.

The commit breaks rtla build, since params->kernel_workload is not
present on 6.6-stable.

Signed-off-by: default avatarTomas Glozar <tglozar@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 7ec6b4bd29003aa8e0fd058b52ca5e22176bc7d8)
Signed-off-by: default avatarWentao Guan <guanwentao@uniontech.com>
parent 469e7163
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -900,16 +900,13 @@ timerlat_hist_apply_config(struct osnoise_tool *tool, struct timerlat_hist_param
		auto_house_keeping(&params->monitored_cpus);
	}

	/*
	* Set workload according to type of thread if the kernel supports it.
	* On kernels without support, user threads will have already failed
	* on missing timerlat_fd, and kernel threads do not need it.
	*/
	retval = osnoise_set_workload(tool->context, params->kernel_workload);
	if (retval < -1) {
	if (params->user_hist) {
		retval = osnoise_set_workload(tool->context, 0);
		if (retval) {
			err_msg("Failed to set OSNOISE_WORKLOAD option\n");
			goto out_err;
		}
	}

	return 0;