m32r: convert cpumask api
PATCH 1/3 m32r: convert cpumask api
We plan to remove cpus_xx() old cpumask APIs later. Also, we plan to change mm_cpu_mask() implementation, allocate only nr_cpu_ids, thus *mm_cpu_mask() is dangerous operation.
Then, this patch convert them.
--- arch/m32r/include/asm/smp.h | 4 +- arch/m32r/kernel/smp.c | 51 +++++++++++++++++++++---------------------- arch/m32r/kernel/smpboot.c | 48 ++++++++++++++++++++-------------------- 3 files changed, 51 insertions(+), 52 deletions(-)
arch/m32r/include/asm/smp.h +2 -2
@@ -81,11 +81,11 @@ static __inline__ int cpu_number_map(int cpu)static __inline__unsigned int num_booting_cpus (void ) { -return cpus_weight (cpu_callout_map); +return cpumask_weight (&cpu_callout_map); }extern void smp_send_timer (void ); -extern unsigned long send_IPI_mask_phys (cpumask_t ,int ,int ); +extern unsigned long send_IPI_mask_phys (const cpumask_t *,int ,int );extern void arch_send_call_function_single_ipi (int cpu);extern void arch_send_call_function_ipi_mask (const struct cpumask *mask);
arch/m32r/kernel/smp.c +25 -26
156 lines not on this page · raw message
arch/m32r/kernel/smpboot.c +24 -24
155 lines not on this page · raw message
Signature · 1 line
1.7.3.1
PATCH 2/3 m32r: fix spin_lock_irqsave() misuse
spin_lock_irqsave() require unsigned long. fix it.
--- drivers/tty/serial/m32r_sio.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/tty/serial/m32r_sio.c +2 -1
@@ -907,9 +907,10 @@ static int m32r_sio_request_port(struct uart_port *port)return ret; } -static void m32r_sio_config_port (struct uart_port *port,int flags) +static void m32r_sio_config_port (struct uart_port *port,int unused) {struct uart_sio_port *up = (struct uart_sio_port *)port; +unsigned long flags;spin_lock_irqsave (&up->port.lock, flags);
Signature · 1 line
1.7.3.1
PATCH 3/3 m32r: remove redundant declaration
In reply to KOSAKI MotohiroThey has no meanings.
--- arch/m32r/kernel/smp.c | 13 ++----------- 1 files changed, 2 insertions(+), 11 deletions(-)
arch/m32r/kernel/smp.c +2 -11
@@ -30,6 +30,7 @@#include <asm/io.h> #include <asm/mmu_context.h> #include <asm/m32r.h> +#include <asm/tlbflush.h> /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/ /* Data structures and variables */
@@ -61,27 +62,17 @@ extern spinlock_t ipi_lock[];/* Function Prototypes */ /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/ -void smp_send_reschedule (int );void smp_reschedule_interrupt (void ); - -void smp_flush_cache_all (void );void smp_flush_cache_all_interrupt (void ); -void smp_flush_tlb_all (void );static void flush_tlb_all_ipi (void *); - -void smp_flush_tlb_mm (struct mm_struct *); -void smp_flush_tlb_range (struct vm_area_struct *,unsigned long , \ -unsigned long ); -void smp_flush_tlb_page (struct vm_area_struct *,unsigned long );static void flush_tlb_others (cpumask_t ,struct mm_struct *,struct vm_area_struct *,unsigned long ); +void smp_invalidate_interrupt (void ); -void smp_send_stop (void );static void stop_this_cpu (void *); -void smp_send_timer (void );void smp_ipi_timer_interrupt (struct pt_regs *);void smp_local_timer_interrupt (void );
Signature · 1 line
1.7.3.1
m32r lost maintainer (was Re: [PATCH 1/3] m32r: convert cpumask api)
In reply to KOSAKI Motohiro(remove m32r maintainer and ml)
Quoted 9 lines
We plan to remove
cpus_xx()old cpumask APIs later. Also, we plan to changemm_cpu_mask()implementation, allocate onlynr_cpu_ids, thus*mm_cpu_mask()is dangerous operation.Then, this patch convert them.
Signed-off-by KOSAKI Motohiro <[email protected]>Cc Hirokazu Takata <[email protected]>
linux-m32r.org no longer exist and my last mail got returned. We should change MAINTAINERS file. :-/
btw, now m32r can finished compile and link, but can't make correct compressed image.
CHK include/generated/compile.h
make[2]: *** No rule to make target arch/m32r/boot/compressed/vmlinux.bin.', needed by arch/m32r/boot/compressed/piggy.o'. Stop. make[1]: *** [arch/m32r/boot/compressed/vmlinux] Error 2
make: *** [zImage] Error 2
Quoted 1 line
From
47a386e8c09f1838ccce56fea027a798dd0d7ab3Mon Sep 17 00:00:00 2001
From: KOSAKI Motohiro <[email protected]>
Date: Tue, 26 Apr 2011 10:23:09 +0900
Subject: [PATCH] m32r: change MAINTAINERS file
linux-m32r.org domain doesn't exist and the e-mail address also no longer exist.
--- MAINTAINERS | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-)
MAINTAINERS +1 -5
@@ -3988,11 +3988,7 @@ T: git git://ltp.git.sourceforge.net/gitroot/ltp/ltp-dev S: Maintained M32R ARCHITECTURE -M: Hirokazu Takata <[email protected]> -L: [email protected] -L: [email protected] (in Japanese) -W: http://www.linux-m32r.org/ -S: Maintained +S: Orphan F: arch/m32r/ M68K ARCHITECTURE
Signature · 1 line
1.7.3.1
Re: [PATCH 3/3] m32r: remove redundant declaration
In reply to KOSAKI MotohiroQuoted 2 lines · KOSAKI Motohiro
They has no meanings.
s/has/have ?
Quoted 59 lines
Signed-off-by KOSAKI Motohiro <[email protected]>Cc Hirokazu Takata <[email protected]>---
arch/m32r/kernel/smp.c | 13 ++-----------1 files changed, 2 insertions(+), 11 deletions(-)arch/m32r/kernel/smp.c +2
-12@@ -30,6 +30,7 @@ #include <asm/io.h> #include <asm/mmu_context.h> #include <asm/m32r.h> +#include <asm/tlbflush.h> /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/ /* Data structures and variables */@@ -61,27 +62,17 @@ extern spinlock_t ipi_lock[]; /* Function Prototypes */ /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/ -void smp_send_reschedule (int ); void smp_reschedule_interrupt(void); - -void smp_flush_cache_all (void ); void smp_flush_cache_all_interrupt(void); -void smp_flush_tlb_all (void ); static void flush_tlb_all_ipi(void *); - -void smp_flush_tlb_mm (struct mm_struct *); -void smp_flush_tlb_range (struct vm_area_struct *,unsigned long , \ - unsigned long); -void smp_flush_tlb_page (struct vm_area_struct *,unsigned long ); static void flush_tlb_others(cpumask_t, struct mm_struct *, struct vm_area_struct *, unsigned long); + void smp_invalidate_interrupt(void); -void smp_send_stop (void ); static void stop_this_cpu(void *); -void smp_send_timer (void ); void smp_ipi_timer_interrupt(struct pt_regs *); void smp_local_timer_interrupt(void); --1.7.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/