Re: [PATCH 4/4] x86: Add sysfs entries for UV v2

Previous thread: [PATCH 3/4] x86: Add UV partition call v2 by Russ Anderson on Friday, September 26, 2008 - 1:03 pm. (1 message)

Next thread: num_possible_cpus() giving more than possible. by Steven Rostedt on Friday, September 26, 2008 - 1:22 pm. (2 messages)
From: Russ Anderson
Date: Friday, September 26, 2008 - 1:03 pm

[PATCH 4/4] Add sysfs entries for UV

Create /sys/firmware/sgi_uv sysfs entries for partition_id and coherence_id.
The interface is documented in Documentation/ABI/testing/sysfs-firmware-sgi_uv.


Signed-off-by: Russ Anderson <rja@sgi.com>

---
 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(-)

Index: linux/arch/x86/kernel/Makefile
===================================================================
--- linux.orig/arch/x86/kernel/Makefile	2008-09-26 13:54:10.000000000 -0500
+++ linux/arch/x86/kernel/Makefile	2008-09-26 14:14:14.000000000 -0500
@@ -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
Index: linux/arch/x86/kernel/uv_sysfs.c
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ linux/arch/x86/kernel/uv_sysfs.c	2008-09-26 14:14:14.000000000 -0500
@@ -0,0 +1,72 @@
+/*
+ * This file supports the /sys/firmware/sgi_uv interfaces for SGI UV.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  ...
From: Greg KH
Date: Sunday, September 28, 2008 - 1:47 pm

Did you forget something?

thanks,

greg k-h
--

From: Russ Anderson
Date: Sunday, September 28, 2008 - 2:28 pm

[Empty message]
From: Greg KH
Date: Monday, September 29, 2008 - 8:43 am

Heh you got the documentation in before the code, that seems to be an
interesting trend these days :)

thanks,

greg k-h
--

Previous thread: [PATCH 3/4] x86: Add UV partition call v2 by Russ Anderson on Friday, September 26, 2008 - 1:03 pm. (1 message)

Next thread: num_possible_cpus() giving more than possible. by Steven Rostedt on Friday, September 26, 2008 - 1:22 pm. (2 messages)