diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/connector.h | 8 | ||||
| -rw-r--r-- | include/linux/netdevice.h | 18 | ||||
| -rw-r--r-- | include/linux/phy.h | 12 |
3 files changed, 9 insertions, 29 deletions
diff --git a/include/linux/connector.h b/include/linux/connector.h index 3a779ffba60b..7e8ca75d2dad 100644 --- a/include/linux/connector.h +++ b/include/linux/connector.h | |||
| @@ -88,12 +88,6 @@ struct cn_queue_dev { | |||
| 88 | unsigned char name[CN_CBQ_NAMELEN]; | 88 | unsigned char name[CN_CBQ_NAMELEN]; |
| 89 | 89 | ||
| 90 | struct workqueue_struct *cn_queue; | 90 | struct workqueue_struct *cn_queue; |
| 91 | /* Sent to kevent to create cn_queue only when needed */ | ||
| 92 | struct work_struct wq_creation; | ||
| 93 | /* Tell if the wq_creation job is pending/completed */ | ||
| 94 | atomic_t wq_requested; | ||
| 95 | /* Wait for cn_queue to be created */ | ||
| 96 | wait_queue_head_t wq_created; | ||
| 97 | 91 | ||
| 98 | struct list_head queue_list; | 92 | struct list_head queue_list; |
| 99 | spinlock_t queue_lock; | 93 | spinlock_t queue_lock; |
| @@ -141,8 +135,6 @@ int cn_netlink_send(struct cn_msg *, u32, gfp_t); | |||
| 141 | int cn_queue_add_callback(struct cn_queue_dev *dev, char *name, struct cb_id *id, void (*callback)(struct cn_msg *, struct netlink_skb_parms *)); | 135 | int cn_queue_add_callback(struct cn_queue_dev *dev, char *name, struct cb_id *id, void (*callback)(struct cn_msg *, struct netlink_skb_parms *)); |
| 142 | void cn_queue_del_callback(struct cn_queue_dev *dev, struct cb_id *id); | 136 | void cn_queue_del_callback(struct cn_queue_dev *dev, struct cb_id *id); |
| 143 | 137 | ||
| 144 | int queue_cn_work(struct cn_callback_entry *cbq, struct work_struct *work); | ||
| 145 | |||
| 146 | struct cn_queue_dev *cn_queue_alloc_dev(char *name, struct sock *); | 138 | struct cn_queue_dev *cn_queue_alloc_dev(char *name, struct sock *); |
| 147 | void cn_queue_free_dev(struct cn_queue_dev *dev); | 139 | void cn_queue_free_dev(struct cn_queue_dev *dev); |
| 148 | 140 | ||
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index fcd3dda86322..072652d94d9f 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -585,15 +585,15 @@ static inline void rps_reset_sock_flow(struct rps_sock_flow_table *table, | |||
| 585 | table->ents[hash & table->mask] = RPS_NO_CPU; | 585 | table->ents[hash & table->mask] = RPS_NO_CPU; |
| 586 | } | 586 | } |
| 587 | 587 | ||
| 588 | extern struct rps_sock_flow_table *rps_sock_flow_table; | 588 | extern struct rps_sock_flow_table __rcu *rps_sock_flow_table; |
| 589 | 589 | ||
| 590 | /* This structure contains an instance of an RX queue. */ | 590 | /* This structure contains an instance of an RX queue. */ |
| 591 | struct netdev_rx_queue { | 591 | struct netdev_rx_queue { |
| 592 | struct rps_map *rps_map; | 592 | struct rps_map __rcu *rps_map; |
| 593 | struct rps_dev_flow_table *rps_flow_table; | 593 | struct rps_dev_flow_table __rcu *rps_flow_table; |
| 594 | struct kobject kobj; | 594 | struct kobject kobj; |
| 595 | struct netdev_rx_queue *first; | 595 | struct netdev_rx_queue *first; |
| 596 | atomic_t count; | 596 | atomic_t count; |
| 597 | } ____cacheline_aligned_in_smp; | 597 | } ____cacheline_aligned_in_smp; |
| 598 | #endif /* CONFIG_RPS */ | 598 | #endif /* CONFIG_RPS */ |
| 599 | 599 | ||
| @@ -944,7 +944,7 @@ struct net_device { | |||
| 944 | /* Protocol specific pointers */ | 944 | /* Protocol specific pointers */ |
| 945 | 945 | ||
| 946 | #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) | 946 | #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) |
| 947 | struct vlan_group *vlgrp; /* VLAN group */ | 947 | struct vlan_group __rcu *vlgrp; /* VLAN group */ |
| 948 | #endif | 948 | #endif |
| 949 | #ifdef CONFIG_NET_DSA | 949 | #ifdef CONFIG_NET_DSA |
| 950 | void *dsa_ptr; /* dsa specific data */ | 950 | void *dsa_ptr; /* dsa specific data */ |
| @@ -952,7 +952,7 @@ struct net_device { | |||
| 952 | void *atalk_ptr; /* AppleTalk link */ | 952 | void *atalk_ptr; /* AppleTalk link */ |
| 953 | struct in_device __rcu *ip_ptr; /* IPv4 specific data */ | 953 | struct in_device __rcu *ip_ptr; /* IPv4 specific data */ |
| 954 | void *dn_ptr; /* DECnet specific data */ | 954 | void *dn_ptr; /* DECnet specific data */ |
| 955 | void *ip6_ptr; /* IPv6 specific data */ | 955 | struct inet6_dev __rcu *ip6_ptr; /* IPv6 specific data */ |
| 956 | void *ec_ptr; /* Econet specific data */ | 956 | void *ec_ptr; /* Econet specific data */ |
| 957 | void *ax25_ptr; /* AX.25 specific data */ | 957 | void *ax25_ptr; /* AX.25 specific data */ |
| 958 | struct wireless_dev *ieee80211_ptr; /* IEEE 802.11 specific data, | 958 | struct wireless_dev *ieee80211_ptr; /* IEEE 802.11 specific data, |
| @@ -1072,7 +1072,7 @@ struct net_device { | |||
| 1072 | struct pcpu_dstats __percpu *dstats; /* dummy stats */ | 1072 | struct pcpu_dstats __percpu *dstats; /* dummy stats */ |
| 1073 | }; | 1073 | }; |
| 1074 | /* GARP */ | 1074 | /* GARP */ |
| 1075 | struct garp_port *garp_port; | 1075 | struct garp_port __rcu *garp_port; |
| 1076 | 1076 | ||
| 1077 | /* class/net/name entry */ | 1077 | /* class/net/name entry */ |
| 1078 | struct device dev; | 1078 | struct device dev; |
diff --git a/include/linux/phy.h b/include/linux/phy.h index a6e047a04f79..7da5fa845959 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h | |||
| @@ -472,11 +472,7 @@ static inline int phy_write(struct phy_device *phydev, u32 regnum, u16 val) | |||
| 472 | int get_phy_id(struct mii_bus *bus, int addr, u32 *phy_id); | 472 | int get_phy_id(struct mii_bus *bus, int addr, u32 *phy_id); |
| 473 | struct phy_device* get_phy_device(struct mii_bus *bus, int addr); | 473 | struct phy_device* get_phy_device(struct mii_bus *bus, int addr); |
| 474 | int phy_device_register(struct phy_device *phy); | 474 | int phy_device_register(struct phy_device *phy); |
| 475 | int phy_clear_interrupt(struct phy_device *phydev); | ||
| 476 | int phy_config_interrupt(struct phy_device *phydev, u32 interrupts); | ||
| 477 | int phy_init_hw(struct phy_device *phydev); | 475 | int phy_init_hw(struct phy_device *phydev); |
| 478 | int phy_attach_direct(struct net_device *dev, struct phy_device *phydev, | ||
| 479 | u32 flags, phy_interface_t interface); | ||
| 480 | struct phy_device * phy_attach(struct net_device *dev, | 476 | struct phy_device * phy_attach(struct net_device *dev, |
| 481 | const char *bus_id, u32 flags, phy_interface_t interface); | 477 | const char *bus_id, u32 flags, phy_interface_t interface); |
| 482 | struct phy_device *phy_find_first(struct mii_bus *bus); | 478 | struct phy_device *phy_find_first(struct mii_bus *bus); |
| @@ -492,17 +488,12 @@ void phy_start(struct phy_device *phydev); | |||
| 492 | void phy_stop(struct phy_device *phydev); | 488 | void phy_stop(struct phy_device *phydev); |
| 493 | int phy_start_aneg(struct phy_device *phydev); | 489 | int phy_start_aneg(struct phy_device *phydev); |
| 494 | 490 | ||
| 495 | void phy_sanitize_settings(struct phy_device *phydev); | ||
| 496 | int phy_stop_interrupts(struct phy_device *phydev); | 491 | int phy_stop_interrupts(struct phy_device *phydev); |
| 497 | int phy_enable_interrupts(struct phy_device *phydev); | ||
| 498 | int phy_disable_interrupts(struct phy_device *phydev); | ||
| 499 | 492 | ||
| 500 | static inline int phy_read_status(struct phy_device *phydev) { | 493 | static inline int phy_read_status(struct phy_device *phydev) { |
| 501 | return phydev->drv->read_status(phydev); | 494 | return phydev->drv->read_status(phydev); |
| 502 | } | 495 | } |
| 503 | 496 | ||
| 504 | int genphy_config_advert(struct phy_device *phydev); | ||
| 505 | int genphy_setup_forced(struct phy_device *phydev); | ||
| 506 | int genphy_restart_aneg(struct phy_device *phydev); | 497 | int genphy_restart_aneg(struct phy_device *phydev); |
| 507 | int genphy_config_aneg(struct phy_device *phydev); | 498 | int genphy_config_aneg(struct phy_device *phydev); |
| 508 | int genphy_update_link(struct phy_device *phydev); | 499 | int genphy_update_link(struct phy_device *phydev); |
| @@ -511,8 +502,6 @@ int genphy_suspend(struct phy_device *phydev); | |||
| 511 | int genphy_resume(struct phy_device *phydev); | 502 | int genphy_resume(struct phy_device *phydev); |
| 512 | void phy_driver_unregister(struct phy_driver *drv); | 503 | void phy_driver_unregister(struct phy_driver *drv); |
| 513 | int phy_driver_register(struct phy_driver *new_driver); | 504 | int phy_driver_register(struct phy_driver *new_driver); |
| 514 | void phy_prepare_link(struct phy_device *phydev, | ||
| 515 | void (*adjust_link)(struct net_device *)); | ||
| 516 | void phy_state_machine(struct work_struct *work); | 505 | void phy_state_machine(struct work_struct *work); |
| 517 | void phy_start_machine(struct phy_device *phydev, | 506 | void phy_start_machine(struct phy_device *phydev, |
| 518 | void (*handler)(struct net_device *)); | 507 | void (*handler)(struct net_device *)); |
| @@ -523,7 +512,6 @@ int phy_mii_ioctl(struct phy_device *phydev, | |||
| 523 | struct ifreq *ifr, int cmd); | 512 | struct ifreq *ifr, int cmd); |
| 524 | int phy_start_interrupts(struct phy_device *phydev); | 513 | int phy_start_interrupts(struct phy_device *phydev); |
| 525 | void phy_print_status(struct phy_device *phydev); | 514 | void phy_print_status(struct phy_device *phydev); |
| 526 | struct phy_device* phy_device_create(struct mii_bus *bus, int addr, int phy_id); | ||
| 527 | void phy_device_free(struct phy_device *phydev); | 515 | void phy_device_free(struct phy_device *phydev); |
| 528 | 516 | ||
| 529 | int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask, | 517 | int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask, |
