aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorChuck Ebbert <76306.1226@compuserve.com>2006-06-27 05:53:47 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-27 20:32:37 -0400
commitc723e084606ca1c81e91b80b2c0c44bde7bbc4df (patch)
treec338f62586978093d7c6b85c3f783cb65879c1f1 /kernel
parent4b89aff930d632be10d557d08d1b60dee7163dbe (diff)
[PATCH] i386: use C code for current_thread_info()
Using C code for current_thread_info() lets the compiler optimize it. With gcc 4.0.2, kernel is smaller: text data bss dec hex filename 3645212 555556 312024 4512792 44dc18 2.6.17-rc6-nb-post/vmlinux 3647276 555556 312024 4514856 44e428 2.6.17-rc6-nb/vmlinux ------- -2064 Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
_EXTCAP_MANTISSA4 0x1c #define REG_EXTCAP_MANTISSA5 0x20 #define REG_EXTCAP_MANTISSA6 0x24 #define REG_EXTCAP_DBC_CAPABILITY 0x00 #define REG_EXTCAP_DBC_DOORBELL 0x04 #define REG_EXTCAP_DBC_ERSTSIZE 0x08 #define REG_EXTCAP_DBC_ERST_LOW 0x10 #define REG_EXTCAP_DBC_ERST_HIGH 0x14 #define REG_EXTCAP_DBC_ERDP_LOW 0x18 #define REG_EXTCAP_DBC_ERDP_HIGH 0x1c #define REG_EXTCAP_DBC_CONTROL 0x20 #define REG_EXTCAP_DBC_STATUS 0x24 #define REG_EXTCAP_DBC_PORTSC 0x28 #define REG_EXTCAP_DBC_CONT_LOW 0x30 #define REG_EXTCAP_DBC_CONT_HIGH 0x34 #define REG_EXTCAP_DBC_DEVINFO1 0x38 #define REG_EXTCAP_DBC_DEVINFO2 0x3c #define dump_register(nm) \ { \ .name = __stringify(nm), \ .offset = REG_ ##nm, \ } struct xhci_regset { char name[DEBUGFS_NAMELEN]; struct debugfs_regset32 regset; size_t nregs; struct dentry *parent; struct list_head list; }; struct xhci_file_map { const char *name; int (*show)(struct seq_file *s, void *unused); }; struct xhci_ep_priv { char name[DEBUGFS_NAMELEN]; struct dentry *root; }; struct xhci_slot_priv { char name[DEBUGFS_NAMELEN]; struct dentry *root; struct xhci_ep_priv *eps[31]; struct xhci_virt_device *dev; }; #ifdef CONFIG_DEBUG_FS void xhci_debugfs_init(struct xhci_hcd *xhci); void xhci_debugfs_exit(struct xhci_hcd *xhci); void __init xhci_debugfs_create_root(void); void __exit xhci_debugfs_remove_root(void); void xhci_debugfs_create_slot(struct xhci_hcd *xhci, int slot_id); void xhci_debugfs_remove_slot(struct xhci_hcd *xhci, int slot_id); void xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index); void xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index); #else static inline void xhci_debugfs_init(struct xhci_hcd *xhci) { } static inline void xhci_debugfs_exit(struct xhci_hcd *xhci) { } static inline void __init xhci_debugfs_create_root(void) { } static inline void __exit xhci_debugfs_remove_root(void) { } static inline void xhci_debugfs_create_slot(struct xhci_hcd *x, int s) { } static inline void xhci_debugfs_remove_slot(struct xhci_hcd *x, int s) { } static inline void xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) { } static inline void xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) { } #endif /* CONFIG_DEBUG_FS */ #endif /* __LINUX_XHCI_DEBUGFS_H */