mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-14 04:41:26 +00:00
genirq: turn irq debugging options into module params
This allows to change them at runtime using sysfs. No need to reboot to set them. I only added aliases (kernel.noirqdebug etc.) so the old options still work. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
b899c5ed2e
commit
9e094c17ee
@ -10,6 +10,7 @@
|
|||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/kallsyms.h>
|
#include <linux/kallsyms.h>
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
|
#include <linux/moduleparam.h>
|
||||||
|
|
||||||
static int irqfixup __read_mostly;
|
static int irqfixup __read_mostly;
|
||||||
|
|
||||||
@ -225,6 +226,8 @@ int noirqdebug_setup(char *str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
__setup("noirqdebug", noirqdebug_setup);
|
__setup("noirqdebug", noirqdebug_setup);
|
||||||
|
module_param(noirqdebug, bool, 0644);
|
||||||
|
MODULE_PARM_DESC(noirqdebug, "Disable irq lockup detection when true");
|
||||||
|
|
||||||
static int __init irqfixup_setup(char *str)
|
static int __init irqfixup_setup(char *str)
|
||||||
{
|
{
|
||||||
@ -236,6 +239,8 @@ static int __init irqfixup_setup(char *str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
__setup("irqfixup", irqfixup_setup);
|
__setup("irqfixup", irqfixup_setup);
|
||||||
|
module_param(irqfixup, int, 0644);
|
||||||
|
MODULE_PARM_DESC("irqfixup", "0: No fixup, 1: irqfixup mode 2: irqpoll mode");
|
||||||
|
|
||||||
static int __init irqpoll_setup(char *str)
|
static int __init irqpoll_setup(char *str)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user