1 From: Russ Anderson <rja@sgi.com>
2 Subject: [PATCH] sgi_uv: Don't publish /sys/firmware/sgi_uv on !uv systems
4 Patch-mainline: Submitted Mar 6 2009 by SGI
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.
10 Acked-by: Jeff Mahoney <jeffm@suse.com>
13 arch/x86/kernel/uv_sysfs.c | 4 ++++
14 1 file changed, 4 insertions(+)
16 --- a/arch/x86/kernel/uv_sysfs.c
17 +++ b/arch/x86/kernel/uv_sysfs.c
20 #include <linux/sysdev.h>
21 #include <asm/uv/bios.h>
22 +#include <asm/genapic.h>
24 struct kobject *sgi_uv_kobj;
27 static int __init sgi_uv_sysfs_init(void)
31 + if (!is_uv_system())
35 sgi_uv_kobj = kobject_create_and_add("sgi_uv", firmware_kobj);