Merge branch 'linus' into x86/pat2
Ingo Molnar [Fri, 10 Oct 2008 17:30:08 +0000 (19:30 +0200)]
Conflicts:
arch/x86/mm/init_64.c

1  2 
arch/x86/mm/init_32.c
arch/x86/mm/init_64.c
arch/x86/mm/ioremap.c
arch/x86/mm/pageattr.c
include/asm-x86/cacheflush.h
include/asm-x86/page.h
include/asm-x86/pgtable.h

Simple merge
@@@ -493,16 -451,16 +493,16 @@@ static void __init find_early_table_spa
        unsigned long puds, pmds, ptes, tables, start;
  
        puds = (end + PUD_SIZE - 1) >> PUD_SHIFT;
-       tables = round_up(puds * sizeof(pud_t), PAGE_SIZE);
+       tables = roundup(puds * sizeof(pud_t), PAGE_SIZE);
 -      if (direct_gbpages) {
 +      if (use_gbpages) {
                unsigned long extra;
                extra = end - ((end>>PUD_SHIFT) << PUD_SHIFT);
                pmds = (extra + PMD_SIZE - 1) >> PMD_SHIFT;
        } else
                pmds = (end + PMD_SIZE - 1) >> PMD_SHIFT;
-       tables += round_up(pmds * sizeof(pmd_t), PAGE_SIZE);
+       tables += roundup(pmds * sizeof(pmd_t), PAGE_SIZE);
  
 -      if (cpu_has_pse) {
 +      if (use_pse) {
                unsigned long extra;
                extra = end - ((end>>PMD_SHIFT) << PMD_SHIFT);
                ptes = (extra + PAGE_SIZE - 1) >> PAGE_SHIFT;
Simple merge
@@@ -979,13 -904,15 +979,15 @@@ EXPORT_SYMBOL(set_memory_nx)
  
  int set_memory_ro(unsigned long addr, int numpages)
  {
 -      return change_page_attr_clear(addr, numpages, __pgprot(_PAGE_RW));
 +      return change_page_attr_clear(&addr, numpages, __pgprot(_PAGE_RW), 0);
  }
+ EXPORT_SYMBOL_GPL(set_memory_ro);
  
  int set_memory_rw(unsigned long addr, int numpages)
  {
 -      return change_page_attr_set(addr, numpages, __pgprot(_PAGE_RW));
 +      return change_page_attr_set(&addr, numpages, __pgprot(_PAGE_RW), 0);
  }
+ EXPORT_SYMBOL_GPL(set_memory_rw);
  
  int set_memory_np(unsigned long addr, int numpages)
  {
Simple merge
Simple merge
Simple merge