summaryrefslogtreecommitdiff
path: root/include/linux/cpu.h
diff options
context:
space:
mode:
authorAshok Raj <ashok.raj@intel.com>2004-06-17 18:07:26 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-17 18:07:26 -0700
commita68a29d93f1ef19871d7b376ab8f82057e2dcf77 (patch)
tree9fe6508e28c884a36c89720c9a129b9ac8eef8cd /include/linux/cpu.h
parentb1b28dddbbebc5222836f81d88192634c9973be6 (diff)
[PATCH] don't create cpu/online sysfs file
This file provides ability for caller of register_cpu() to either create a control file, or not. This can be handy if a particular platform decides that certain CPU's are not removable. Hence would like to not create a control file. Signed-off-by: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Ashok Raj <ashok.raj@intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/cpu.h')
-rw-r--r--include/linux/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h
index 2c3d97fc570c..5925e83d9794 100644
--- a/include/linux/cpu.h
+++ b/include/linux/cpu.h
@@ -27,6 +27,7 @@
struct cpu {
int node_id; /* The node which contains the CPU */
+ int no_control; /* Should the sysfs control file be created? */
struct sys_device sysdev;
};