Skip to contentSkip to conversation

x86: Add UV sysfs entries

PATCH New Russ Anderson 1 participant 1 message Oct 15, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 4/7 x86: Add UV sysfs entries

[PATCH 4/7] x86: Add UV sysfs entries

Create /sys/firmware/sgi_uv sysfs entries for partition_id and coherence_id.

---
 arch/x86/kernel/Makefile   |    2 -
 arch/x86/kernel/uv_sysfs.c |   72 +++++++++++++++++++++++++++++++++++++++++++++
 include/asm-x86/uv/bios.h  |    1 
 3 files changed, 74 insertions(+), 1 deletion(-)
arch/x86/kernel/Makefile +1 -1
Index: linux/arch/x86/kernel/Makefile
===================================================================
@@ -107,7 +107,7 @@ obj-$(CONFIG_OLPC)		+= olpc.o
 # 64 bit specific files
 ifeq ($(CONFIG_X86_64),y)
         obj-y				+= genapic_64.o genapic_flat_64.o genx2apic_uv_x.o tlb_uv.o
-	obj-y				+= bios_uv.o
+	obj-y				+= bios_uv.o uv_sysfs.o
         obj-y				+= genx2apic_cluster.o
         obj-y				+= genx2apic_phys.o
         obj-$(CONFIG_X86_PM_TIMER)	+= pmtimer_64.o
arch/x86/kernel/uv_sysfs.c new file +72 -0

72 lines not on this page · raw message

include/asm-x86/uv/bios.h +1 -0
Index: linux/include/asm-x86/uv/bios.h
===================================================================
@@ -89,5 +89,6 @@ extern long sn_coherency_id;
 extern long sn_region_size;
 #define partition_coherence_id()	(sn_coherency_id)
 
+extern struct kobject *sgi_uv_kobj;	/* /sys/firmware/sgi_uv */
 
 #endif /* ASM_X86__UV__BIOS_H */
Signature · 2 lines
Russ Anderson, OS RAS/Partitioning Project Lead  
SGI - Silicon Graphics Inc          [email protected]