Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9780e3e968537db0ac8d5b4857bb38bc40217c01
Commit:     9780e3e968537db0ac8d5b4857bb38bc40217c01
Parent:     a0d8cdb652d35af9319a9e0fb7134de2a276c636
Author:     Akinobu Mita <[EMAIL PROTECTED]>
AuthorDate: Thu Oct 18 03:05:12 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Oct 18 14:37:21 2007 -0700

    cpu hotplug: topology: remove topology_dev_map
    
    By previous cpu hotplug notifier change, we don't need to track topology_dev
    existence for each cpu by topology_dev_map.
    
    Acked-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
    Signed-off-by: Akinobu Mita <[EMAIL PROTECTED]>
    Cc: Gautham R Shenoy <[EMAIL PROTECTED]>
    Cc: Oleg Nesterov <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/base/topology.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/drivers/base/topology.c b/drivers/base/topology.c
index 8d8cdfe..e1d3ad4 100644
--- a/drivers/base/topology.c
+++ b/drivers/base/topology.c
@@ -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);
 }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to