~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to include/linux/memory_hotplug.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
extern void __online_page_increment_counters(struct page *page);
95
95
extern void __online_page_free(struct page *page);
96
96
 
 
97
extern int try_online_node(int nid);
 
98
 
97
99
#ifdef CONFIG_MEMORY_HOTREMOVE
98
100
extern bool is_pageblock_removable_nolock(struct page *page);
99
101
extern int arch_remove_memory(u64 start, u64 size);
225
227
{
226
228
}
227
229
 
 
230
static inline int try_online_node(int nid)
 
231
{
 
232
        return 0;
 
233
}
 
234
 
228
235
static inline void lock_memory_hotplug(void) {}
229
236
static inline void unlock_memory_hotplug(void) {}
230
237
 
256
263
 
257
264
extern int walk_memory_range(unsigned long start_pfn, unsigned long end_pfn,
258
265
                void *arg, int (*func)(struct memory_block *, void *));
259
 
extern int mem_online_node(int nid);
260
266
extern int add_memory(int nid, u64 start, u64 size);
261
267
extern int arch_add_memory(int nid, u64 start, u64 size);
262
268
extern int offline_pages(unsigned long start_pfn, unsigned long nr_pages);
263
269
extern bool is_memblock_offlined(struct memory_block *mem);
264
270
extern void remove_memory(int nid, u64 start, u64 size);
265
 
extern int sparse_add_one_section(struct zone *zone, unsigned long start_pfn,
266
 
                                                                int nr_pages);
 
271
extern int sparse_add_one_section(struct zone *zone, unsigned long start_pfn);
267
272
extern void sparse_remove_one_section(struct zone *zone, struct mem_section *ms);
268
273
extern struct page *sparse_decode_mem_map(unsigned long coded_mem_map,
269
274
                                          unsigned long pnum);