Skip to contentSkip to conversation

x86: irq: Handle VMBUS driver being a module

PATCH In review K. Y. Srinivasan 2 participants 3 messages Apr 2, 2014 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: irq: Handle VMBUS driver being a module

Hyper-V VMBUS driver can be a module; handle this case correctly. Please apply.

---
 arch/x86/kernel/irq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/irq.c +1 -1
index 42805fa..283a76a 100644
@@ -125,7 +125,7 @@ int arch_show_interrupts(struct seq_file *p, int prec)
 		seq_printf(p, "%10u ", per_cpu(mce_poll_count, j));
 	seq_printf(p, "  Machine check polls\n");
 #endif
-#if defined(CONFIG_HYPERV) || defined(CONFIG_XEN)
+#if IS_ENABLED(CONFIG_HYPERV) || defined(CONFIG_XEN)
 	seq_printf(p, "%*s: ", prec, "THR");
 	for_each_online_cpu(j)
 		seq_printf(p, "%10u ", irq_stats(j)->irq_hv_callback_count);
Signature · 1 line
1.7.4.1
#1 lore raw

Thomas,

With the Hyper-V irq cleanup that you checked in, currently Hyper-V interrupts are not being displayed when Hyper-V is configured as a module. This patch fixes the issue.

Regards,

K. Y

Quoted 32 lines

-----Original Message-----
From: K. Y. Srinivasan [mailto:[email protected]]
Sent: Tuesday, April 1, 2014 11:52 PM
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: KY Srinivasan
Subject: [PATCH 1/1] x86: irq: Handle VMBUS driver being a module

Hyper-V VMBUS driver can be a module; handle this case correctly. Please apply.

---
 arch/x86/kernel/irq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/irq.c +1 -2
index 42805fa..283a76a 100644
@@ -125,7 +125,7 @@ int arch_show_interrupts(struct seq_file *p, int prec)
 		seq_printf(p, "%10u ", per_cpu(mce_poll_count, j));
 	seq_printf(p, "  Machine check polls\n");
 #endif
-#if defined(CONFIG_HYPERV) || defined(CONFIG_XEN)
+#if IS_ENABLED(CONFIG_HYPERV) || defined(CONFIG_XEN)
 	seq_printf(p, "%*s: ", prec, "THR");
 	for_each_online_cpu(j)
 		seq_printf(p, "%10u ", irq_stats(j)->irq_hv_callback_count);
--

1.7.4.1

#2 lore raw

[tip:x86/urgent] x86/platform/hyperv: Handle VMBUS driver being a module

In reply to K. Y. Srinivasan
x86/platform/hyperv: Handle VMBUS driver being a module
Commit-ID:  f704a7d7f1d815621cb4c47f7a94787e1bd7c27c
Gitweb:     http://git.kernel.org/tip/f704a7d7f1d815621cb4c47f7a94787e1bd7c27c
Author:     K. Y. Srinivasan <[email protected]>
AuthorDate: Tue, 1 Apr 2014 23:51:42 -0700
Committer:  Ingo Molnar <[email protected]>
CommitDate: Wed, 2 Apr 2014 09:49:47 +0200

x86/platform/hyperv: Handle VMBUS driver being a module

Hyper-V VMBUS driver can be a module; handle this case correctly. Please apply.

---
 arch/x86/kernel/irq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/irq.c +1 -1
index 42805fa..283a76a 100644
@@ -125,7 +125,7 @@ int arch_show_interrupts(struct seq_file *p, int prec)
 		seq_printf(p, "%10u ", per_cpu(mce_poll_count, j));
 	seq_printf(p, "  Machine check polls\n");
 #endif
-#if defined(CONFIG_HYPERV) || defined(CONFIG_XEN)
+#if IS_ENABLED(CONFIG_HYPERV) || defined(CONFIG_XEN)
 	seq_printf(p, "%*s: ", prec, "THR");
 	for_each_online_cpu(j)
 		seq_printf(p, "%10u ", irq_stats(j)->irq_hv_callback_count);