Skip to contentSkip to conversation

xen/arm: Remove unused field eoi_cpu in arch_irq_desc

PATCH Applied Julien Grall 2 participants 6 messages Jun 26, 2015 – Jul 3, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm: Remove unused field eoi_cpu in arch_irq_desc

This field have been set but not used since Xen 4.5. Slim down Xen by about 4K by removing it.

Also fix comment coding style.

---
 xen/arch/arm/irq.c        | 7 ++++---
 xen/include/asm-arm/irq.h | 1 -
 2 files changed, 4 insertions(+), 4 deletions(-)
xen/arch/arm/irq.c +4 -3
index 2dd43ee..6bb076e 100644
@@ -219,10 +219,11 @@ void do_IRQ(struct cpu_user_regs *regs, unsigned int irq, int is_fiq)
         desc->handler->end(desc);
 
         set_bit(_IRQ_INPROGRESS, &desc->status);
-        desc->arch.eoi_cpu = smp_processor_id();
 
-        /* the irq cannot be a PPI, we only support delivery of SPIs to
-         * guests */
+        /*
+	 * The irq cannot be a PPI, we only support delivery of SPIs to
+         * guests.
+	 */
         vgic_vcpu_inject_spi(info->d, info->virq);
         goto out_no_end;
     }
xen/include/asm-arm/irq.h +0 -1
index 34b492b..6c00d09 100644
@@ -15,7 +15,6 @@ struct arch_pirq
 };
 
 struct arch_irq_desc {
-    int eoi_cpu;
     unsigned int type;
 };
 
Signature · 1 line
2.1.4
#1 lore raw
Quoted 16 lines · Julien Grall

This field have been set but not used since Xen 4.5. Slim down Xen by about 4K by removing it.

Also fix comment coding style.

---
 xen/arch/arm/irq.c        | 7 ++++---
 xen/include/asm-arm/irq.h | 1 -
 2 files changed, 4 insertions(+), 4 deletions(-)
xen/arch/arm/irq.c +0 -0
index 2dd43ee..6bb076e 100644

xen/arch/arm/irq.c void do_IRQ(struct cpu_user_regs *regs, unsigned int irq, int is_fiq) · line 225

Quoted 10 lines
xen/arch/arm/irq.c +3 -3
@@ -219,10 +219,11 @@ void do_IRQ(struct cpu_user_regs *regs, unsigned int irq, int is_fiq)
         desc->handler->end(desc);
 
         set_bit(_IRQ_INPROGRESS, &desc->status);
-        desc->arch.eoi_cpu = smp_processor_id();
 
-        /* the irq cannot be a PPI, we only support delivery of SPIs to
-         * guests */
+        /*
+	 * The irq cannot be a PPI, we only support delivery of SPIs to
+         * guests.

Stray tab?

Otherwise LGTM: Acked-by: Ian Campbell <[email protected]>

#2 lore raw

Hi Ian,

Quoted 22 lines · Ian Campbell
Quoted 21 lines · Julien Grall

This field have been set but not used since Xen 4.5. Slim down Xen by about 4K by removing it.

Also fix comment coding style.

---
  xen/arch/arm/irq.c        | 7 ++++---
  xen/include/asm-arm/irq.h | 1 -
  2 files changed, 4 insertions(+), 4 deletions(-)
xen/arch/arm/irq.c +0 -1
index 2dd43ee..6bb076e 100644
@@ -219,10 +219,11 @@ void do_IRQ(struct cpu_user_regs *regs, unsigned int irq, int is_fiq)
          desc->handler->end(desc);
 
          set_bit(_IRQ_INPROGRESS, &desc->status);
-        desc->arch.eoi_cpu = smp_processor_id();
 
Quoted 7 lines

xen/arch/arm/irq.c void do_IRQ(struct cpu_user_regs *regs, unsigned int irq, int is_fiq) · line 225

Quoted 5 lines
xen/arch/arm/irq.c +3 -2
-        /* the irq cannot be a PPI, we only support delivery of SPIs to
-         * guests */
+        /*
+	 * The irq cannot be a PPI, we only support delivery of SPIs to
+         * guests.

Stray tab?

Yes, sorry. I have edited the file with the wrong vim configuration.

Quoted 1 line

Otherwise LGTM: Acked-by: Ian Campbell <[email protected]>

Shall I resend the patch?

Regards,

Signature · 1 line
Julien Grall
#3 lore raw
Quoted 33 lines · Julien Grall

Hi Ian,

Quoted 22 lines · Ian Campbell
Quoted 21 lines · Julien Grall

This field have been set but not used since Xen 4.5. Slim down Xen by about 4K by removing it.

Also fix comment coding style.

---
  xen/arch/arm/irq.c        | 7 ++++---
  xen/include/asm-arm/irq.h | 1 -
  2 files changed, 4 insertions(+), 4 deletions(-)
xen/arch/arm/irq.c +0 -1
index 2dd43ee..6bb076e 100644
@@ -219,10 +219,11 @@ void do_IRQ(struct cpu_user_regs *regs, unsigned int irq, int is_fiq)
          desc->handler->end(desc);
 
          set_bit(_IRQ_INPROGRESS, &desc->status);
-        desc->arch.eoi_cpu = smp_processor_id();
 
Quoted 7 lines

xen/arch/arm/irq.c void do_IRQ(struct cpu_user_regs *regs, unsigned int irq, int is_fiq) · line 225

Quoted 5 lines
xen/arch/arm/irq.c +3 -2
-        /* the irq cannot be a PPI, we only support delivery of SPIs to
-         * guests */
+        /*
+	 * The irq cannot be a PPI, we only support delivery of SPIs to
+         * guests.

Stray tab?

Quoted 5 lines

Yes, sorry. I have edited the file with the wrong vim configuration.

Quoted 1 line

Otherwise LGTM: Acked-by: Ian Campbell <[email protected]>

Shall I resend the patch?

I'll fix on commit I think

Quoted 3 lines

Regards,

#4 lore raw
Quoted 34 lines · Ian Campbell
Quoted 33 lines · Julien Grall

Hi Ian,

Quoted 29 lines · Ian Campbell
Quoted 16 lines · Julien Grall

This field have been set but not used since Xen 4.5. Slim down Xen by about 4K by removing it.

Also fix comment coding style.

---
   xen/arch/arm/irq.c        | 7 ++++---
   xen/include/asm-arm/irq.h | 1 -
   2 files changed, 4 insertions(+), 4 deletions(-)
xen/arch/arm/irq.c +0 -0
index 2dd43ee..6bb076e 100644

xen/arch/arm/irq.c void do_IRQ(struct cpu_user_regs *regs, unsigned int irq, int is_fiq) · line 225

Quoted 10 lines
xen/arch/arm/irq.c +3 -3
@@ -219,10 +219,11 @@ void do_IRQ(struct cpu_user_regs *regs, unsigned int irq, int is_fiq)
           desc->handler->end(desc);
 
           set_bit(_IRQ_INPROGRESS, &desc->status);
-        desc->arch.eoi_cpu = smp_processor_id();
 
-        /* the irq cannot be a PPI, we only support delivery of SPIs to
-         * guests */
+        /*
+	 * The irq cannot be a PPI, we only support delivery of SPIs to
+         * guests.

Stray tab?

Quoted 7 lines
Quoted 5 lines

Yes, sorry. I have edited the file with the wrong vim configuration.

Quoted 1 line

Otherwise LGTM: Acked-by: Ian Campbell <[email protected]>

Shall I resend the patch?

I'll fix on commit I think

Thank you!

Signature · 1 line
Julien Grall
Applied
#5 lore raw
In reply to Ian Campbell
Quoted 30 lines · Ian Campbell
Quoted 16 lines · Julien Grall

This field have been set but not used since Xen 4.5. Slim down Xen by about 4K by removing it.

Also fix comment coding style.

---
 xen/arch/arm/irq.c        | 7 ++++---
 xen/include/asm-arm/irq.h | 1 -
 2 files changed, 4 insertions(+), 4 deletions(-)
xen/arch/arm/irq.c +0 -0
index 2dd43ee..6bb076e 100644

xen/arch/arm/irq.c void do_IRQ(struct cpu_user_regs *regs, unsigned int irq, int is_fiq) · line 225

Quoted 10 lines
xen/arch/arm/irq.c +3 -3
@@ -219,10 +219,11 @@ void do_IRQ(struct cpu_user_regs *regs, unsigned int irq, int is_fiq)
         desc->handler->end(desc);
 
         set_bit(_IRQ_INPROGRESS, &desc->status);
-        desc->arch.eoi_cpu = smp_processor_id();
 
-        /* the irq cannot be a PPI, we only support delivery of SPIs to
-         * guests */
+        /*
+	 * The irq cannot be a PPI, we only support delivery of SPIs to
+         * guests.

Stray tab?

Quoted 1 line

Otherwise LGTM: Acked-by: Ian Campbell <[email protected]>

Applied.

Quoted 7 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel