Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101145
b: refs/heads/master
c: 131b943
h: refs/heads/master
i:
  101143: b02e9e9
v: v3
  • Loading branch information
Ben Hutchings authored and Ingo Molnar committed Jun 13, 2008
1 parent bab9ca8 commit dd1319e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c50cbb05a05cf1f9ca3592272eff053c847727d8
refs/heads/master: 131b943ae643b1ad6febd67cdbb31d955706ecf4
6 changes: 2 additions & 4 deletions trunk/drivers/base/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,14 @@ static ssize_t show_cpumap(int type, cpumask_t *mask, char *buf)
static inline ssize_t show_##name(struct sys_device *dev, char *buf) \
{ \
unsigned int cpu = dev->id; \
cpumask_t siblings = topology_##name(cpu); \
return show_cpumap(0, &siblings, buf); \
return show_cpumap(0, &(topology_##name(cpu)), buf); \
}

#define define_siblings_show_list(name) \
static inline ssize_t show_##name##_list(struct sys_device *dev, char *buf) \
{ \
unsigned int cpu = dev->id; \
cpumask_t siblings = topology_##name(cpu); \
return show_cpumap(1, &siblings, buf); \
return show_cpumap(1, &(topology_##name(cpu)), buf); \
}

#define define_siblings_show_func(name) \
Expand Down

0 comments on commit dd1319e

Please sign in to comment.