diff options
Diffstat (limited to 'include/linux/cpu.h')
| -rw-r--r-- | include/linux/cpu.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h new file mode 100644 index 000000000000..bcf7294b967a --- /dev/null +++ b/include/linux/cpu.h @@ -0,0 +1,28 @@ +/* + * cpu.h - generic cpu defition + * + * This is mainly for topological representation. We define the + * basic 'struct cpu' here, which can be embedded in per-arch + * definitions of processors. + * + * Basic handling of the devices is done in drivers/base/cpu.c + * and system devices are handled in drivers/base/sys.c. + * + * CPUs are exported via driverfs in the class/cpu/devices/ + * directory. + * + * Per-cpu interfaces can be implemented using a struct device_interface. + * See the following for how to do this: + * - drivers/base/intf.c + * - Documentation/driver-model/interface.txt + * + */ + +#include <linux/device.h> + +extern struct device_class cpu_devclass; + +struct cpu { + struct sys_device sysdev; +}; + |
