mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 05:34:13 +08:00
kselftest/arm64: Don't repeat termination handler for fp-stress
When fp-stress gets a termination signal it sets a flag telling itself to exit and sends a termination signal to all the children. If the flag is set then don't bother repeating this process, it isn't going to accomplish anything other than consume CPU time which can be an issue when running in emulation. Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20220921181345.618085-2-broonie@kernel.org Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
This commit is contained in:
parent
55c8a987dd
commit
c38d381fff
@ -255,6 +255,10 @@ static void handle_exit_signal(int sig, siginfo_t *info, void *context)
|
||||
{
|
||||
int i;
|
||||
|
||||
/* If we're already exiting then don't signal again */
|
||||
if (terminate)
|
||||
return;
|
||||
|
||||
ksft_print_msg("Got signal, exiting...\n");
|
||||
|
||||
terminate = true;
|
||||
|
Loading…
Reference in New Issue
Block a user