diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-07-07 10:27:33 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-07-07 10:27:33 +0100 |
commit | 9bc1e7604c7ce8acc9da32b1885397b65bbdad85 (patch) | |
tree | 5185157c7907bede9d681052051e53413d924e46 /sys-kernel/linux-image-redcore/files/5.1-0012-Make-threaded-IRQs-optionally-the-default-which-can-.patch | |
parent | 53d283f13409958e4b63d9b13eafeef997163565 (diff) |
sys-kernel/linux-{image,sources}-redcore : version bump to v5.1.15
Diffstat (limited to 'sys-kernel/linux-image-redcore/files/5.1-0012-Make-threaded-IRQs-optionally-the-default-which-can-.patch')
-rw-r--r-- | sys-kernel/linux-image-redcore/files/5.1-0012-Make-threaded-IRQs-optionally-the-default-which-can-.patch | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/sys-kernel/linux-image-redcore/files/5.1-0012-Make-threaded-IRQs-optionally-the-default-which-can-.patch b/sys-kernel/linux-image-redcore/files/5.1-0012-Make-threaded-IRQs-optionally-the-default-which-can-.patch new file mode 100644 index 00000000..3e40227f --- /dev/null +++ b/sys-kernel/linux-image-redcore/files/5.1-0012-Make-threaded-IRQs-optionally-the-default-which-can-.patch @@ -0,0 +1,67 @@ +From 50ddde6e3c62abd39dc6a3cd5941febed7ad49c3 Mon Sep 17 00:00:00 2001 +From: Con Kolivas <kernel@kolivas.org> +Date: Wed, 7 Dec 2016 21:13:16 +1100 +Subject: [PATCH 13/16] Make threaded IRQs optionally the default which can be + disabled. + +--- + kernel/irq/Kconfig | 17 +++++++++++++++++ + kernel/irq/manage.c | 11 +++++++++++ + 2 files changed, 28 insertions(+) + +diff --git a/kernel/irq/Kconfig b/kernel/irq/Kconfig +index 5f3e2baefca9..de3e5740679b 100644 +--- a/kernel/irq/Kconfig ++++ b/kernel/irq/Kconfig +@@ -107,6 +107,23 @@ config GENERIC_IRQ_RESERVATION_MODE + config IRQ_FORCED_THREADING + bool + ++config FORCE_IRQ_THREADING ++ bool "Make IRQ threading compulsory" ++ depends on IRQ_FORCED_THREADING ++ default n ++ ---help--- ++ ++ Make IRQ threading mandatory for any IRQ handlers that support it ++ instead of being optional and requiring the threadirqs kernel ++ parameter. Instead they can be optionally disabled with the ++ nothreadirqs kernel parameter. ++ ++ Enabling this may make some architectures not boot with runqueue ++ sharing and MuQSS. ++ ++ Enable if you are building for a desktop or low latency system, ++ otherwise say N. ++ + config SPARSE_IRQ + bool "Support sparse irq numbering" if MAY_HAVE_SPARSE_IRQ + ---help--- +diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c +index 1401afa0d58a..54394031b536 100644 +--- a/kernel/irq/manage.c ++++ b/kernel/irq/manage.c +@@ -23,9 +23,20 @@ + #include "internals.h" + + #ifdef CONFIG_IRQ_FORCED_THREADING ++#ifdef CONFIG_FORCE_IRQ_THREADING ++__read_mostly bool force_irqthreads = true; ++#else + __read_mostly bool force_irqthreads; ++#endif + EXPORT_SYMBOL_GPL(force_irqthreads); + ++static int __init setup_noforced_irqthreads(char *arg) ++{ ++ force_irqthreads = false; ++ return 0; ++} ++early_param("nothreadirqs", setup_noforced_irqthreads); ++ + static int __init setup_forced_irqthreads(char *arg) + { + force_irqthreads = true; +-- +2.17.1 + |