Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8594
b: refs/heads/master
c: b9aac10
h: refs/heads/master
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Sep 12, 2005
1 parent 27dfa9c commit 232f628
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 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: 0a43e4bf7489074c667f24b9670ecd88f6eb0a07
refs/heads/master: b9aac10dddd927f0b9cfcca19a272ded87015574
5 changes: 0 additions & 5 deletions trunk/arch/x86_64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,6 @@ void __init mem_init(void)
#ifdef CONFIG_NUMA
totalram_pages = numa_free_all_bootmem();
#else

#ifdef CONFIG_FLATMEM
max_mapnr = end_pfn;
if (!mem_map) BUG();
#endif
totalram_pages = free_all_bootmem();
#endif
reservedpages = end_pfn - totalram_pages - e820_hole_size(0, end_pfn);
Expand Down
4 changes: 3 additions & 1 deletion trunk/include/asm-x86_64/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
#ifdef __KERNEL__
#ifndef __ASSEMBLY__

extern unsigned long end_pfn;

void clear_page(void *);
void copy_page(void *, void *);

Expand Down Expand Up @@ -111,7 +113,7 @@ typedef struct { unsigned long pgprot; } pgprot_t;
#ifdef CONFIG_FLATMEM
#define pfn_to_page(pfn) (mem_map + (pfn))
#define page_to_pfn(page) ((unsigned long)((page) - mem_map))
#define pfn_valid(pfn) ((pfn) < max_mapnr)
#define pfn_valid(pfn) ((pfn) < end_pfn)
#endif

#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
Expand Down
2 changes: 0 additions & 2 deletions trunk/include/asm-x86_64/proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ extern int unhandled_signal(struct task_struct *tsk, int sig);
extern void select_idle_routine(const struct cpuinfo_x86 *c);
extern void swiotlb_init(void);

extern unsigned long max_mapnr;
extern unsigned long end_pfn;
extern unsigned long table_start, table_end;

extern int exception_trace;
Expand Down

0 comments on commit 232f628

Please sign in to comment.