/* * 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 extern struct device_class cpu_devclass; struct cpu { struct sys_device sysdev; };