OSDN Git Service

profiling: Implement a simple task exit notifier when disabled
authorDanny Lin <danny@kdrag0n.dev>
Mon, 8 Apr 2019 06:34:36 +0000 (23:34 -0700)
committer0ranko0P <ranko0p@outlook.com>
Wed, 4 Dec 2019 17:16:47 +0000 (01:16 +0800)
commitfa0838f7aae596bb7f494ebcaf8c36fe76a4a643
treeac4d1560298aed5b764ae7537ca2d240fac7fc3b
parent1d95db673c1dc95c205fbe52312c4dbf3ffa3640
profiling: Implement a simple task exit notifier when disabled

Some kernel code currently depends on the profiling subsystem solely for
its task exit notifier. The rest of the profiling subsystem is left
unused.

Add a simple task exit notifier implemented in kernel/exit.c to make
such code work properly even when profiling is disabled. This will allow
unnecessary profiling code to be disabled without breakage.

Signed-off-by: Danny Lin <danny@kdrag0n.dev>
include/linux/profile.h
kernel/exit.c