aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-11 06:27:47 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-11 06:27:47 -0400
commita22dd3629e257e5db51ad12610d00bb2856b291d (patch)
tree9589763bcba11e2c9fcecd5e6ad49caa9f95e069
parent6302aad48c5cb56c9f9c3fb7aa73d2f1f2f10540 (diff)
parente054637597ba36d3729ba6a3a3dd7aad8e2a3003 (diff)
Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Ingo writes: "scheduler fix: Cleanup of dead code left over from the recent sched/numa fixes." * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: mm, sched/numa: Remove remaining traces of NUMA rate-limiting
-rw-r--r--include/linux/mmzone.h4
-rw-r--r--mm/page_alloc.c10
2 files changed, 0 insertions, 14 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 3f4c0b167333..d4b0c79d2924 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -668,10 +668,6 @@ typedef struct pglist_data {
668 wait_queue_head_t kcompactd_wait; 668 wait_queue_head_t kcompactd_wait;
669 struct task_struct *kcompactd; 669 struct task_struct *kcompactd;
670#endif 670#endif
671#ifdef CONFIG_NUMA_BALANCING
672 /* Lock serializing the migrate rate limiting window */
673 spinlock_t numabalancing_migrate_lock;
674#endif
675 /* 671 /*
676 * This is a per-node reserve of pages that are not available 672 * This is a per-node reserve of pages that are not available
677 * to userspace allocations. 673 * to userspace allocations.
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 706a738c0aee..e2ef1c17942f 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -6193,15 +6193,6 @@ static unsigned long __init calc_memmap_size(unsigned long spanned_pages,
6193 return PAGE_ALIGN(pages * sizeof(struct page)) >> PAGE_SHIFT; 6193 return PAGE_ALIGN(pages * sizeof(struct page)) >> PAGE_SHIFT;
6194} 6194}
6195 6195
6196#ifdef CONFIG_NUMA_BALANCING
6197static void pgdat_init_numabalancing(struct pglist_data *pgdat)
6198{
6199 spin_lock_init(&pgdat->numabalancing_migrate_lock);
6200}
6201#else
6202static void pgdat_init_numabalancing(struct pglist_data *pgdat) {}
6203#endif
6204
6205#ifdef CONFIG_TRANSPARENT_HUGEPAGE 6196#ifdef CONFIG_TRANSPARENT_HUGEPAGE
6206static void pgdat_init_split_queue(struct pglist_data *pgdat) 6197static void pgdat_init_split_queue(struct pglist_data *pgdat)
6207{ 6198{
@@ -6226,7 +6217,6 @@ static void __meminit pgdat_init_internals(struct pglist_data *pgdat)
6226{ 6217{
6227 pgdat_resize_init(pgdat); 6218 pgdat_resize_init(pgdat);
6228 6219
6229 pgdat_init_numabalancing(pgdat);
6230 pgdat_init_split_queue(pgdat); 6220 pgdat_init_split_queue(pgdat);
6231 pgdat_init_kcompactd(pgdat); 6221 pgdat_init_kcompactd(pgdat);
6232 6222