Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1327380 > unrolled thread

[PATCH 2/7] MIPS: Select CONFIG_HANDLE_DOMAIN_IRQ and make it work.

Started byDavid Daney <ddaney.cavm@gmail.com>
First post2016-02-05 01:50 +0100
Last post2016-02-05 01:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/7] MIPS: Select CONFIG_HANDLE_DOMAIN_IRQ and make it work. David Daney <ddaney.cavm@gmail.com> - 2016-02-05 01:50 +0100

#1327380 — [PATCH 2/7] MIPS: Select CONFIG_HANDLE_DOMAIN_IRQ and make it work.

FromDavid Daney <ddaney.cavm@gmail.com>
Date2016-02-05 01:50 +0100
Subject[PATCH 2/7] MIPS: Select CONFIG_HANDLE_DOMAIN_IRQ and make it work.
Message-ID<qYCL1-18W-17@gated-at.bofh.it>
From: David Daney <david.daney@cavium.com>

Per the subject, always select HANDLE_DOMAIN_IRQ, and implement
set_irq_regs() so that it actually works.

Signed-off-by: David Daney <david.daney@cavium.com>
---
 arch/mips/Kconfig                |  1 +
 arch/mips/include/asm/irq_regs.h | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 57a945e..9a0a780 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -62,6 +62,7 @@ config MIPS
 	select HAVE_IRQ_TIME_ACCOUNTING
 	select GENERIC_TIME_VSYSCALL
 	select ARCH_CLOCKSOURCE_DATA
+	select HANDLE_DOMAIN_IRQ
 
 menu "Machine selection"
 
diff --git a/arch/mips/include/asm/irq_regs.h b/arch/mips/include/asm/irq_regs.h
index 33bd2a0..8c48d6d 100644
--- a/arch/mips/include/asm/irq_regs.h
+++ b/arch/mips/include/asm/irq_regs.h
@@ -18,4 +18,14 @@ static inline struct pt_regs *get_irq_regs(void)
 	return current_thread_info()->regs;
 }
 
+static inline struct pt_regs *set_irq_regs(struct pt_regs *new_regs)
+{
+	struct pt_regs *old_regs;
+
+	old_regs = get_irq_regs();
+	current_thread_info()->regs = new_regs;
+
+	return old_regs;
+}
+
 #endif /* __ASM_IRQ_REGS_H */
-- 
1.7.11.7

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web