Skip to contentSkip to conversation

m32r: convert cpumask api

PATCH In review KOSAKI Motohiro 2 participants 5 messages Apr 25, 2011 – Apr 26, 2011 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

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
index e67ded1..d0ce888 100644
@@ -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
#1 lore raw

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
index bea5c21..84db732 100644
@@ -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
#2 lore raw

PATCH 3/3 m32r: remove redundant declaration

In reply to KOSAKI Motohiro

They has no meanings.

---
 arch/m32r/kernel/smp.c |   13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)
arch/m32r/kernel/smp.c +2 -11
index f758100..092d40a 100644
@@ -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
#3 lore raw

Re: [PATCH 3/3] m32r: remove redundant declaration

Quoted 2 lines · KOSAKI Motohiro

They has no meanings.

s/has/have ?

Quoted 59 lines

---
 arch/m32r/kernel/smp.c |   13 ++-----------

 1 files changed, 2 insertions(+), 11 deletions(-)
arch/m32r/kernel/smp.c +2 -12
index f758100..092d40a 100644
@@ -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/

#4 lore raw

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 change mm_cpu_mask() implementation, allocate only nr_cpu_ids, thus *mm_cpu_mask() is dangerous operation.

Then, this patch convert them.

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 47a386e8c09f1838ccce56fea027a798dd0d7ab3 Mon 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
index ba7918e..b515336 100644
@@ -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