]> git.baikalelectronics.ru Git - kernel.git/commit
Move list types from <linux/list.h> to <linux/types.h>.
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 2 Jul 2010 17:41:14 +0000 (13:41 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Tue, 6 Jul 2010 17:33:54 +0000 (13:33 -0400)
commiteff875de4b47182de50ef46733a374db31e64c17
treeb81702527a1b00440d8ae28b858dff93b930c0e6
parentee3174686c52aa3099e4eef78413719255a3f2cf
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>
include/linux/list.h
include/linux/types.h