-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dave Hansen
authored and
Linus Torvalds
committed
Oct 30, 2005
1 parent
50cab3c
commit 8da02db
Showing
10 changed files
with
77 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: c6a57e19e464db118dc4ab9cfe9e9748c6d630a0 | ||
refs/heads/master: 208d54e5513c0c02d85af0990901354c74364d5c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#ifndef __LINUX_MEMORY_HOTPLUG_H | ||
#define __LINUX_MEMORY_HOTPLUG_H | ||
|
||
#include <linux/mmzone.h> | ||
#include <linux/spinlock.h> | ||
|
||
#ifdef CONFIG_MEMORY_HOTPLUG | ||
/* | ||
* pgdat resizing functions | ||
*/ | ||
static inline | ||
void pgdat_resize_lock(struct pglist_data *pgdat, unsigned long *flags) | ||
{ | ||
spin_lock_irqsave(&pgdat->node_size_lock, *flags); | ||
} | ||
static inline | ||
void pgdat_resize_unlock(struct pglist_data *pgdat, unsigned long *flags) | ||
{ | ||
spin_lock_irqrestore(&pgdat->node_size_lock, *flags); | ||
} | ||
static inline | ||
void pgdat_resize_init(struct pglist_data *pgdat) | ||
{ | ||
spin_lock_init(&pgdat->node_size_lock); | ||
} | ||
#else /* ! CONFIG_MEMORY_HOTPLUG */ | ||
/* | ||
* Stub functions for when hotplug is off | ||
*/ | ||
static inline void pgdat_resize_lock(struct pglist_data *p, unsigned long *f) {} | ||
static inline void pgdat_resize_unlock(struct pglist_data *p, unsigned long *f) {} | ||
static inline void pgdat_resize_init(struct pglist_data *pgdat) {} | ||
#endif | ||
#endif /* __LINUX_MEMORY_HOTPLUG_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters