Revision 1d13c49cf4e246b218d71873f1bb1bbd376aa10e authored by Lijo Lazar on 31 March 2023, 11:00:01 UTC, committed by Alex Deucher on 07 June 2023, 20:53:35 UTC
Use the right data structure for allocation. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
1 parent 2a1eb1a
bust_spinlocks.c
// SPDX-License-Identifier: GPL-2.0
/*
* lib/bust_spinlocks.c
*
* Provides a minimal bust_spinlocks for architectures which don't
* have one of their own.
*
* bust_spinlocks() clears any spinlocks which would prevent oops, die(), BUG()
* and panic() information from reaching the user.
*/
#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/spinlock.h>
#include <linux/tty.h>
#include <linux/wait.h>
#include <linux/vt_kern.h>
#include <linux/console.h>
void bust_spinlocks(int yes)
{
if (yes) {
++oops_in_progress;
} else {
console_unblank();
if (--oops_in_progress == 0)
wake_up_klogd();
}
}
Computing file changes ...