Skip to contentSkip to conversation

2.6.17: no pc speaker device in domUs

PATCH In review Jan Beulich 1 participant 1 message Feb 14, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 5/8 2.6.17: no pc speaker device in domUs

The pc speaker device should not be allocated for domUs I believe.

arch/i386/kernel/setup-xen.c +3 -0
Index: head-2007-02-08/arch/i386/kernel/setup-xen.c
===================================================================
@@ -1839,6 +1839,9 @@ static __init int add_pcspkr(void)
 	struct platform_device *pd;
 	int ret;
 
+	if (!is_initial_xendomain())
+		return 0;
+
 	pd = platform_device_alloc("pcspkr", -1);
 	if (!pd)
 		return -ENOMEM;
arch/x86_64/kernel/setup-xen.c +3 -0
Index: head-2007-02-08/arch/x86_64/kernel/setup-xen.c
===================================================================
@@ -1644,6 +1644,9 @@ static __init int add_pcspkr(void)
 	struct platform_device *pd;
 	int ret;
 
+	if (!is_initial_xendomain())
+		return 0;
+
 	pd = platform_device_alloc("pcspkr", -1);
 	if (!pd)
 		return -ENOMEM;