aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs/debug.h
diff options
context:
space:
mode:
authorLee, Chun-Yi <jlee@novell.com>2010-01-26 11:13:45 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-07 20:04:53 -0500
commitec766278ba927f3d3c75211ea7697aae37f327f0 (patch)
tree71e40d734fa95525e2968d6620c11c73be37b080 /fs/ntfs/debug.h
parent472ea12d1a265c868e1605abb59bf21f595eedfc (diff)
msi-laptop: Add resume method for set the SCM load again
Implement the resume method for set the load SCM flag after system reusme. Without this patch, the wifi function key on SCM model will back to BIOS control mode then confuse with the userland software control. e.g. MSI N034 Signed-off-by: Lee, Chun-Yi <jlee@novell.com> Cc: Lennart Poettering <mzxreary@0pointer.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/ntfs/debug.h')
0 files changed, 0 insertions, 0 deletions
>netpoll_setup(struct netpoll *np); int netpoll_trap(void); void netpoll_set_trap(int trap); void __netpoll_cleanup(struct netpoll *np); void netpoll_cleanup(struct netpoll *np); int __netpoll_rx(struct sk_buff *skb); void netpoll_send_skb_on_dev(struct netpoll *np, struct sk_buff *skb, struct net_device *dev); static inline void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb) { netpoll_send_skb_on_dev(np, skb, np->dev); } #ifdef CONFIG_NETPOLL static inline bool netpoll_rx(struct sk_buff *skb) { struct netpoll_info *npinfo; unsigned long flags; bool ret = false; local_irq_save(flags); npinfo = rcu_dereference_bh(skb->dev->npinfo); if (!npinfo || (list_empty(&npinfo->rx_np) && !npinfo->rx_flags)) goto out; spin_lock(&npinfo->rx_lock); /* check rx_flags again with the lock held */ if (npinfo->rx_flags && __netpoll_rx(skb)) ret = true; spin_unlock(&npinfo->rx_lock); out: local_irq_restore(flags); return ret; } static inline int netpoll_rx_on(struct sk_buff *skb) { struct netpoll_info *npinfo = rcu_dereference_bh(skb->dev->npinfo); return npinfo && (!list_empty(&npinfo->rx_np) || npinfo->rx_flags); } static inline int netpoll_receive_skb(struct sk_buff *skb) { if (!list_empty(&skb->dev->napi_list)) return netpoll_rx(skb); return 0; } static inline void *netpoll_poll_lock(struct napi_struct *napi) { struct net_device *dev = napi->dev; if (dev && dev->npinfo) { spin_lock(&napi->poll_lock); napi->poll_owner = smp_processor_id(); return napi; } return NULL; } static inline void netpoll_poll_unlock(void *have) { struct napi_struct *napi = have; if (napi) { napi->poll_owner = -1; spin_unlock(&napi->poll_lock); } } static inline int netpoll_tx_running(struct net_device *dev) { return irqs_disabled(); } #else static inline bool netpoll_rx(struct sk_buff *skb) { return 0; } static inline int netpoll_rx_on(struct sk_buff *skb) { return 0; } static inline int netpoll_receive_skb(struct sk_buff *skb) { return 0; } static inline void *netpoll_poll_lock(struct napi_struct *napi) { return NULL; } static inline void netpoll_poll_unlock(void *have) { } static inline void netpoll_netdev_init(struct net_device *dev) { } static inline int netpoll_tx_running(struct net_device *dev) { return 0; } #endif #endif