diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2010-07-02 13:41:14 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2010-07-06 13:33:54 -0400 |
commit | de5d9bf6541736dc7ad264d2b5cc99bc1b2ad958 (patch) | |
tree | b81702527a1b00440d8ae28b858dff93b930c0e6 /include/linux/types.h | |
parent | b51cae21ee66f77a368428e6bdf75a0c012c9fd7 (diff) |
Move list types from <linux/list.h> to <linux/types.h>.
This allows a list_head (or hlist_head, etc.) to be used from places
that used to be impractical, in particular <asm/processor.h>, which
used to cause include file recursion: <linux/list.h> includes
<linux/prefetch.h>, which always includes <asm/processor.h> for the
prefetch macros, as well as <asm/system.h>, which often includes
<asm/processor.h> directly or indirectly.
This avoids a lot of painful workaround hackery on the tile
architecture, where we use a list_head in the thread_struct to chain
together tasks that are activated on a particular hardwall.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Reviewed-by: Matthew Wilcox <willy@linux.intel.com>
Diffstat (limited to 'include/linux/types.h')
-rw-r--r-- | include/linux/types.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h index 23d237a075e2..336cc39c46f1 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -197,6 +197,18 @@ typedef struct { } atomic64_t; #endif +struct list_head { + struct list_head *next, *prev; +}; + +struct hlist_head { + struct hlist_node *first; +}; + +struct hlist_node { + struct hlist_node *next, **pprev; +}; + struct ustat { __kernel_daddr_t f_tfree; __kernel_ino_t f_tinode; |