Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30724
b: refs/heads/master
c: 10ad400
h: refs/heads/master
v: v3
  • Loading branch information
Yasunori Goto authored and Linus Torvalds committed Jun 28, 2006
1 parent b3839e4 commit dcd3a95
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 306d6cbe86e2e6603ac3162e1294d5c75cfdeca6
refs/heads/master: 10ad400b49aca15ecf83b0fde7e35e4064b15c85
4 changes: 4 additions & 0 deletions trunk/arch/ia64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ config HAVE_ARCH_EARLY_PFN_TO_NID
def_bool y
depends on NEED_MULTIPLE_NODES

config HAVE_ARCH_NODEDATA_EXTENSION
def_bool y
depends on NUMA

config IA32_SUPPORT
bool "Support for Linux/x86 binaries"
help
Expand Down
12 changes: 12 additions & 0 deletions trunk/include/linux/memory_hotplug.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ static inline pg_data_t *arch_alloc_nodedata(int nid)
static inline void arch_free_nodedata(pg_data_t *pgdat)
{
}
static inline void arch_refresh_nodedata(int nid, pg_data_t *pgdat)
{
}

#else /* CONFIG_HAVE_ARCH_NODEDATA_EXTENSION */

Expand All @@ -114,6 +117,12 @@ static inline void arch_free_nodedata(pg_data_t *pgdat)
*/
#define generic_free_nodedata(pgdat) kfree(pgdat)

extern pg_data_t *node_data[];
static inline void arch_refresh_nodedata(int nid, pg_data_t *pgdat)
{
node_data[nid] = pgdat;
}

#else /* !CONFIG_NUMA */

/* never called */
Expand All @@ -125,6 +134,9 @@ static inline pg_data_t *generic_alloc_nodedata(int nid)
static inline void generic_free_nodedata(pg_data_t *pgdat)
{
}
static inline void arch_refresh_nodedata(int nid, pg_data_t *pgdat)
{
}
#endif /* CONFIG_NUMA */
#endif /* CONFIG_HAVE_ARCH_NODEDATA_EXTENSION */

Expand Down

0 comments on commit dcd3a95

Please sign in to comment.