sysdev: Convert cpu driver sysdev class attributes
commit265d2e2e31c5f6dc1b20ae1653a17fdba706f79e
authorAndi Kleen <andi@firstfloor.org>
Tue, 5 Jan 2010 11:48:00 +0000 (5 12:48 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Mar 2010 01:04:47 +0000 (7 17:04 -0800)
treeef5de928828081f97e7d85650993bc6e0c281f2b
parentb15f562fc2f5429f27e5dfb0b0ee5ec44f661986
sysdev: Convert cpu driver sysdev class attributes

Using the new attribute argument convert the cpu driver class attributes
to carry the node state. Then use a shared function to do what a lot of
individual functions did before.

This eliminates an ugly macro.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/cpu.c