diff options
Diffstat (limited to 'drivers/base/node.c')
| -rw-r--r-- | drivers/base/node.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/base/node.c b/drivers/base/node.c index 0f867a083338..5116b78c6325 100644 --- a/drivers/base/node.c +++ b/drivers/base/node.c | |||
| @@ -36,11 +36,13 @@ static ssize_t node_read_cpumap(struct sys_device *dev, int type, char *buf) | |||
| 36 | return len; | 36 | return len; |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | static inline ssize_t node_read_cpumask(struct sys_device *dev, char *buf) | 39 | static inline ssize_t node_read_cpumask(struct sys_device *dev, |
| 40 | struct sysdev_attribute *attr, char *buf) | ||
| 40 | { | 41 | { |
| 41 | return node_read_cpumap(dev, 0, buf); | 42 | return node_read_cpumap(dev, 0, buf); |
| 42 | } | 43 | } |
| 43 | static inline ssize_t node_read_cpulist(struct sys_device *dev, char *buf) | 44 | static inline ssize_t node_read_cpulist(struct sys_device *dev, |
| 45 | struct sysdev_attribute *attr, char *buf) | ||
| 44 | { | 46 | { |
| 45 | return node_read_cpumap(dev, 1, buf); | 47 | return node_read_cpumap(dev, 1, buf); |
| 46 | } | 48 | } |
| @@ -49,7 +51,8 @@ static SYSDEV_ATTR(cpumap, S_IRUGO, node_read_cpumask, NULL); | |||
| 49 | static SYSDEV_ATTR(cpulist, S_IRUGO, node_read_cpulist, NULL); | 51 | static SYSDEV_ATTR(cpulist, S_IRUGO, node_read_cpulist, NULL); |
| 50 | 52 | ||
| 51 | #define K(x) ((x) << (PAGE_SHIFT - 10)) | 53 | #define K(x) ((x) << (PAGE_SHIFT - 10)) |
| 52 | static ssize_t node_read_meminfo(struct sys_device * dev, char * buf) | 54 | static ssize_t node_read_meminfo(struct sys_device * dev, |
| 55 | struct sysdev_attribute *attr, char * buf) | ||
| 53 | { | 56 | { |
| 54 | int n; | 57 | int n; |
| 55 | int nid = dev->id; | 58 | int nid = dev->id; |
| @@ -112,7 +115,8 @@ static ssize_t node_read_meminfo(struct sys_device * dev, char * buf) | |||
| 112 | #undef K | 115 | #undef K |
| 113 | static SYSDEV_ATTR(meminfo, S_IRUGO, node_read_meminfo, NULL); | 116 | static SYSDEV_ATTR(meminfo, S_IRUGO, node_read_meminfo, NULL); |
| 114 | 117 | ||
| 115 | static ssize_t node_read_numastat(struct sys_device * dev, char * buf) | 118 | static ssize_t node_read_numastat(struct sys_device * dev, |
| 119 | struct sysdev_attribute *attr, char * buf) | ||
| 116 | { | 120 | { |
| 117 | return sprintf(buf, | 121 | return sprintf(buf, |
| 118 | "numa_hit %lu\n" | 122 | "numa_hit %lu\n" |
| @@ -130,7 +134,8 @@ static ssize_t node_read_numastat(struct sys_device * dev, char * buf) | |||
| 130 | } | 134 | } |
| 131 | static SYSDEV_ATTR(numastat, S_IRUGO, node_read_numastat, NULL); | 135 | static SYSDEV_ATTR(numastat, S_IRUGO, node_read_numastat, NULL); |
| 132 | 136 | ||
| 133 | static ssize_t node_read_distance(struct sys_device * dev, char * buf) | 137 | static ssize_t node_read_distance(struct sys_device * dev, |
| 138 | struct sysdev_attribute *attr, char * buf) | ||
| 134 | { | 139 | { |
| 135 | int nid = dev->id; | 140 | int nid = dev->id; |
| 136 | int len = 0; | 141 | int len = 0; |
