Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193798
b: refs/heads/master
c: 30bde1f
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Rothwell authored and David S. Miller committed Mar 29, 2010
1 parent 12b87e2 commit a480979
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 10f744d205dde72a0016dbdb11e239da8269958b
refs/heads/master: 30bde1f5076a9b6bd4b6a168523930ce242c7449
7 changes: 4 additions & 3 deletions trunk/net/core/net-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ static struct attribute_group wireless_group = {
};
#endif

#ifdef CONFIG_RPS
/*
* RX queue sysfs structures and functions.
*/
Expand Down Expand Up @@ -675,7 +676,7 @@ static void rx_queue_remove_kobjects(struct net_device *net)
kobject_put(&net->_rx[i].kobj);
kset_unregister(net->queues_kset);
}

#endif /* CONFIG_RPS */
#endif /* CONFIG_SYSFS */

#ifdef CONFIG_HOTPLUG
Expand Down Expand Up @@ -739,7 +740,7 @@ void netdev_unregister_kobject(struct net_device * net)
if (!net_eq(dev_net(net), &init_net))
return;

#ifdef CONFIG_SYSFS
#ifdef CONFIG_RPS
rx_queue_remove_kobjects(net);
#endif

Expand Down Expand Up @@ -782,7 +783,7 @@ int netdev_register_kobject(struct net_device *net)
if (error)
return error;

#ifdef CONFIG_SYSFS
#ifdef CONFIG_RPS
error = rx_queue_register_kobjects(net);
if (error) {
device_del(dev);
Expand Down

0 comments on commit a480979

Please sign in to comment.