Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71132
b: refs/heads/master
c: 9780e3e
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Oct 18, 2007
1 parent 3a48c27 commit 5530ef9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 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: a0d8cdb652d35af9319a9e0fb7134de2a276c636
refs/heads/master: 9780e3e968537db0ac8d5b4857bb38bc40217c01
11 changes: 1 addition & 10 deletions trunk/drivers/base/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,27 +94,18 @@ static struct attribute_group topology_attr_group = {
.name = "topology"
};

static cpumask_t topology_dev_map = CPU_MASK_NONE;

/* Add/Remove cpu_topology interface for CPU device */
static int __cpuinit topology_add_dev(unsigned int cpu)
{
int rc;
struct sys_device *sys_dev = get_cpu_sysdev(cpu);

rc = sysfs_create_group(&sys_dev->kobj, &topology_attr_group);
if (!rc)
cpu_set(cpu, topology_dev_map);
return rc;
return sysfs_create_group(&sys_dev->kobj, &topology_attr_group);
}

static void __cpuinit topology_remove_dev(unsigned int cpu)
{
struct sys_device *sys_dev = get_cpu_sysdev(cpu);

if (!cpu_isset(cpu, topology_dev_map))
return;
cpu_clear(cpu, topology_dev_map);
sysfs_remove_group(&sys_dev->kobj, &topology_attr_group);
}

Expand Down

0 comments on commit 5530ef9

Please sign in to comment.