]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf sched replay: Remove unused parts of the code
authorMadadi Vineeth Reddy <vineethr@linux.ibm.com>
Tue, 17 Sep 2024 09:01:00 +0000 (14:31 +0530)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 26 Sep 2024 22:47:57 +0000 (15:47 -0700)
commit6adeb277fea06eeed3e9658a2e72573ac70fd011
tree6a40608dd1aa3590a9eb5daa46b78f334bdb4e52
parent6490dda55dcabbd5cf408387f932c9343a22c872
perf sched replay: Remove unused parts of the code

The sleep_sem semaphore and the specific_wait field (member of sched_atom)
are initialized but not used anywhere in the code, so this patch removes
them.

The SCHED_EVENT_MIGRATION case in perf_sched__process_event() is currently
not used and is also removed.

Additionally, prev_state in add_sched_event_sleep() is marked with
__maybe_unused and is not utilized anywhere in the function. This patch
removes the parameter.

If the task_state parameter was intended for future use, it can be
reintroduced when needed.

No functionality change intended.

Signed-off-by: Madadi Vineeth Reddy <vineethr@linux.ibm.com>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Link: https://lore.kernel.org/r/20240917090100.42783-1-vineethr@linux.ibm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-sched.c