Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37606
b: refs/heads/master
c: 5394702
h: refs/heads/master
v: v3
  • Loading branch information
Keith Mannthey authored and Linus Torvalds committed Oct 1, 2006
1 parent 78988ff commit c3dfb0a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c2676a5870ab15cbeea9f826266bc946fe3cc26
refs/heads/master: 53947027ad90542ddb2bb746e3175827c270610a
2 changes: 1 addition & 1 deletion trunk/drivers/base/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ obj-y += power/
obj-$(CONFIG_ISA) += isa.o
obj-$(CONFIG_FW_LOADER) += firmware_class.o
obj-$(CONFIG_NUMA) += node.o
obj-$(CONFIG_MEMORY_HOTPLUG) += memory.o
obj-$(CONFIG_MEMORY_HOTPLUG_SPARSE) += memory.o
obj-$(CONFIG_SMP) += topology.o
obj-$(CONFIG_SYS_HYPERVISOR) += hypervisor.o

Expand Down
4 changes: 2 additions & 2 deletions trunk/include/linux/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct memory_block {
struct notifier_block;
struct mem_section;

#ifndef CONFIG_MEMORY_HOTPLUG
#ifndef CONFIG_MEMORY_HOTPLUG_SPARSE
static inline int memory_dev_init(void)
{
return 0;
Expand All @@ -78,7 +78,7 @@ extern int remove_memory_block(unsigned long, struct mem_section *, int);
#define CONFIG_MEM_BLOCK_SIZE (PAGES_PER_SECTION<<PAGE_SHIFT)


#endif /* CONFIG_MEMORY_HOTPLUG */
#endif /* CONFIG_MEMORY_HOTPLUG_SPARSE */

#define hotplug_memory_notifier(fn, pri) { \
static struct notifier_block fn##_mem_nb = \
Expand Down
2 changes: 2 additions & 0 deletions trunk/mm/memory_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include <asm/tlbflush.h>

#ifdef CONFIG_MEMORY_HOTPLUG_SPARSE
static int __add_zone(struct zone *zone, unsigned long phys_start_pfn)
{
struct pglist_data *pgdat = zone->zone_pgdat;
Expand Down Expand Up @@ -192,6 +193,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages)
writeback_set_ratelimit();
return 0;
}
#endif /* CONFIG_MEMORY_HOTPLUG_SPARSE */

static pg_data_t *hotadd_new_pgdat(int nid, u64 start)
{
Expand Down

0 comments on commit c3dfb0a

Please sign in to comment.