Skip to content

Commit

Permalink
mm, meminit: remove early_page_nid_uninitialised
Browse files Browse the repository at this point in the history
The helper early_page_nid_uninitialised() has been dead since commit
974a786 ("mm, page_alloc: remove MIGRATE_RESERVE") so remove the
dead code.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Mel Gorman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
gormanm authored and torvalds committed Jul 28, 2016
1 parent fec1e5f commit a621184
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,14 +295,6 @@ static inline bool __meminit early_page_uninitialised(unsigned long pfn)
return false;
}

static inline bool early_page_nid_uninitialised(unsigned long pfn, int nid)
{
if (pfn >= NODE_DATA(nid)->first_deferred_pfn)
return true;

return false;
}

/*
* Returns false when the remaining initialisation should be deferred until
* later in the boot cycle when it can be parallelised.
Expand Down Expand Up @@ -342,11 +334,6 @@ static inline bool early_page_uninitialised(unsigned long pfn)
return false;
}

static inline bool early_page_nid_uninitialised(unsigned long pfn, int nid)
{
return false;
}

static inline bool update_defer_init(pg_data_t *pgdat,
unsigned long pfn, unsigned long zone_end,
unsigned long *nr_initialised)
Expand Down

0 comments on commit a621184

Please sign in to comment.