]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.25/patches.fixes/no-sys_uv-on-non-uv-systems
Updated xen patches taken from suse.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.fixes / no-sys_uv-on-non-uv-systems
1 From: Russ Anderson <rja@sgi.com>
2 Subject: [PATCH] sgi_uv: Don't publish /sys/firmware/sgi_uv on !uv systems
3 References: bnc#482506
4 Patch-mainline: Submitted Mar 6 2009 by SGI
5
6 MPT testing of sles11 found /sys/firmware/sgi_uv gets created on non-UV x86_64
7 systems. This confuses MPT which uses /sys/firmware/sgi_uv to indicate the
8 platform is a UV system.
9
10 Acked-by: Jeff Mahoney <jeffm@suse.com>
11 ---
12
13 arch/x86/kernel/uv_sysfs.c | 4 ++++
14 1 file changed, 4 insertions(+)
15
16 --- a/arch/x86/kernel/uv_sysfs.c
17 +++ b/arch/x86/kernel/uv_sysfs.c
18 @@ -21,6 +21,7 @@
19
20 #include <linux/sysdev.h>
21 #include <asm/uv/bios.h>
22 +#include <asm/genapic.h>
23
24 struct kobject *sgi_uv_kobj;
25
26 @@ -46,6 +47,9 @@
27 static int __init sgi_uv_sysfs_init(void)
28 {
29 unsigned long ret;
30 +
31 + if (!is_uv_system())
32 + return -ENODEV;
33
34 if (!sgi_uv_kobj)
35 sgi_uv_kobj = kobject_create_and_add("sgi_uv", firmware_kobj);