]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge branch 'for-linus' of git://repo.or.cz/cris-mirror
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 5 Apr 2009 18:36:31 +0000 (11:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 5 Apr 2009 18:36:31 +0000 (11:36 -0700)
* 'for-linus' of git://repo.or.cz/cris-mirror:
  CRISv32: Remove extraneous space between -I and the path.
  cris: convert obsolete hw_interrupt_type to struct irq_chip
  BUG to BUG_ON changes
  cpumask: use mm_cpumask() wrapper: cris
  cpumask: Use accessors code.: cris
  cpumask: prepare for iterators to only go to nr_cpu_ids/nr_cpumask_bits.: cris

arch/cris/arch-v10/kernel/irq.c
arch/cris/arch-v32/boot/compressed/Makefile
arch/cris/arch-v32/kernel/irq.c
arch/cris/arch-v32/kernel/smp.c
arch/cris/arch-v32/mm/tlb.c
arch/cris/kernel/setup.c
arch/cris/mm/init.c

index 65ed803dae6f90b2792b1c12c0d40da8518e821d..5d75f77f9c733267d323b309eba85e1df34d8617 100644 (file)
@@ -132,7 +132,7 @@ static void end_crisv10_irq(unsigned int irq)
 {
 }
 
-static struct hw_interrupt_type crisv10_irq_type = {
+static struct irq_chip crisv10_irq_type = {
        .typename =    "CRISv10",
        .startup =     startup_crisv10_irq,
        .shutdown =    shutdown_crisv10_irq,
index 5a1b31c99eaa188485b29c8dd2933278dcdd40c7..e176b8b69d92fb96b8dbbedf68fd631151a47fbe 100644 (file)
@@ -2,9 +2,9 @@
 # arch/cris/arch-v32/boot/compressed/Makefile
 #
 
-asflags-y += -I $(srctree)/include/asm/mach/ -I $(srctree)/include/asm/arch
-ccflags-y += -O2 -I $(srctree)/include/asm/mach/ -I $(srctree)/include/asm/arch
-ldflags-y += -T $(srctree)/$(src)/decompress.lds
+asflags-y += -I$(srctree)/include/asm/mach/ -I$(srctree)/include/asm/arch
+ccflags-y += -O2 -I$(srctree)/include/asm/mach/ -I$(srctree)/include/asm/arch
+ldflags-y += -T$(srctree)/$(src)/decompress.lds
 OBJECTS = $(obj)/head.o $(obj)/misc.o
 OBJCOPYFLAGS = -O binary --remove-section=.bss
 
index 295131fee710ebe97758fed49f71fc5c0a3b906c..df3925cb1c7fbbcab86f8445491d0e77ebf684a9 100644 (file)
@@ -333,7 +333,7 @@ void set_affinity_crisv32_irq(unsigned int irq, const struct cpumask *dest)
        spin_unlock_irqrestore(&irq_lock, flags);
 }
 
-static struct hw_interrupt_type crisv32_irq_type = {
+static struct irq_chip crisv32_irq_type = {
        .typename =    "CRISv32",
        .startup =     startup_crisv32_irq,
        .shutdown =    shutdown_crisv32_irq,
index f59a973c97ee31893595b2a6c6e2e7778ce15e10..d2a3ff8c4d37e59a1eaec5dda7f5edb41aff67aa 100644 (file)
@@ -97,9 +97,9 @@ void __devinit smp_prepare_boot_cpu(void)
        SUPP_BANK_SEL(2);
        SUPP_REG_WR(RW_MM_TLB_PGD, pgd);
 
-       cpu_set(0, cpu_online_map);
+       set_cpu_online(0, true);
        cpu_set(0, phys_cpu_present_map);
-       cpu_set(0, cpu_possible_map);
+       set_cpu_possible(0, true);
 }
 
 void __init smp_cpus_done(unsigned int max_cpus)
@@ -231,7 +231,7 @@ void flush_tlb_common(struct mm_struct* mm, struct vm_area_struct* vma, unsigned
        cpumask_t cpu_mask;
 
        spin_lock_irqsave(&tlbstate_lock, flags);
-       cpu_mask = (mm == FLUSH_ALL ? CPU_MASK_ALL : mm->cpu_vm_mask);
+       cpu_mask = (mm == FLUSH_ALL ? cpu_all_mask : *mm_cpumask(mm));
        cpu_clear(smp_processor_id(), cpu_mask);
        flush_mm = mm;
        flush_vma = vma;
@@ -251,8 +251,8 @@ void flush_tlb_mm(struct mm_struct *mm)
        __flush_tlb_mm(mm);
        flush_tlb_common(mm, FLUSH_ALL, 0);
        /* No more mappings in other CPUs */
-       cpus_clear(mm->cpu_vm_mask);
-       cpu_set(smp_processor_id(), mm->cpu_vm_mask);
+       cpumask_clear(mm_cpumask(mm));
+       cpumask_set_cpu(smp_processor_id(), mm_cpumask(mm));
 }
 
 void flush_tlb_page(struct vm_area_struct *vma,
index 55ade36fe8a8b187cca9edfa4939da2ae6dab7ee..6779bcb28ab090cdeab6876461178b614da3a11a 100644 (file)
@@ -185,7 +185,7 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next,
                /* Make sure there is a MMU context. */
                spin_lock(&mmu_context_lock);
                get_mmu_context(next);
-               cpu_set(cpu, next->cpu_vm_mask);
+               cpumask_set_cpu(cpu, mm_cpumask(next));
                spin_unlock(&mmu_context_lock);
 
                /*
index 04d48dd91ddf53b45b05e3f6c7188d7d03741946..b712f4934c4bb1ef8503ce3d3af4c405f1443e06 100644 (file)
@@ -166,7 +166,7 @@ void __init setup_arch(char **cmdline_p)
 
 static void *c_start(struct seq_file *m, loff_t *pos)
 {
-       return *pos < NR_CPUS ? (void *)(int)(*pos + 1): NULL;
+       return *pos < nr_cpu_ids ? (void *)(int)(*pos + 1) : NULL;
 }
 
 static void *c_next(struct seq_file *m, void *v, loff_t *pos)
index 2fdd212eb250002cf5bfd53bb513c86bea15a8f4..514f46a4b2303baef15045e55fb218b8b1834c28 100644 (file)
@@ -25,8 +25,7 @@ mem_init(void)
        int codesize, reservedpages, datasize, initsize;
        unsigned long tmp;
 
-       if(!mem_map)
-               BUG();
+       BUG_ON(!mem_map);
 
        /* max/min_low_pfn was set by setup.c
         * now we just copy it to some other necessary places...