Skip to contentSkip to conversation

xen: Use new irq_move functions

PATCH In review Thomas Gleixner 3 participants 4 messages Mar 24, 2011 – Mar 25, 2011 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: Use new irq_move functions

These functions take irq_data as an argument and avoid a redundant lookup in the sparse irq case.

Cc Ian Campbell <[email protected]>
Cc Jeremy Fitzhardinge <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
---
 drivers/xen/events.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/xen/events.c +2 -2
Index: linux-2.6-tip/drivers/xen/events.c
===================================================================
@@ -585,7 +585,7 @@ static void ack_pirq(struct irq_data *da
 {
 	int evtchn = evtchn_from_irq(data->irq);
 
-	move_native_irq(data->irq);
+	irq_move_irq(data);
 
 	if (VALID_EVTCHN(evtchn)) {
 		mask_evtchn(evtchn);
@@ -1339,7 +1339,7 @@ static void ack_dynirq(struct irq_data *
 {
 	int evtchn = evtchn_from_irq(data->irq);
 
-	move_masked_irq(data->irq);
+	irq_move_masked_irq(data);
 
 	if (VALID_EVTCHN(evtchn))
 		unmask_evtchn(evtchn);
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Thomas Gleixner

These functions take irq_data as an argument and avoid a redundant lookup in the sparse irq case.

Looks good to me.

Do you want to carry this in your tree or shall we pick it up? (not sure if this is part of a wider treewide series or not)

Quoted 28 lines
Cc Jeremy Fitzhardinge <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
---
 drivers/xen/events.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6-tip/drivers/xen/events.c
===================================================================

drivers/xen/events.c +2 -2
@@ -585,7 +585,7 @@ static void ack_pirq(struct irq_data *da
 {
 	int evtchn = evtchn_from_irq(data->irq);
 
-	move_native_irq(data->irq);
+	irq_move_irq(data);
 
 	if (VALID_EVTCHN(evtchn)) {
 		mask_evtchn(evtchn);
@@ -1339,7 +1339,7 @@ static void ack_dynirq(struct irq_data *
 {
 	int evtchn = evtchn_from_irq(data->irq);
 
-	move_masked_irq(data->irq);
+	irq_move_masked_irq(data);
 
 	if (VALID_EVTCHN(evtchn))
 		unmask_evtchn(evtchn);
#2 lore raw
Quoted 4 lines · Ian Campbell
Quoted 3 lines · Thomas Gleixner

These functions take irq_data as an argument and avoid a redundant lookup in the sparse irq case.

Quoted 8 lines
Quoted 1 line

Looks good to me.

Do you want to carry this in your tree or shall we pick it up? (not sure if this is part of a wider treewide series or not)

Works either way as long as we get it into .39 so we can cleanup the old stuff. Ditto for the namespace.

Thanks,

tglx

#3 lore raw
Quoted 10 lines · Thomas Gleixner
Quoted 8 lines · Ian Campbell
Quoted 4 lines · Thomas Gleixner

These functions take irq_data as an argument and avoid a redundant lookup in the sparse irq case.

Looks good to me.

Quoted 7 lines
Quoted 4 lines

Do you want to carry this in your tree or shall we pick it up? (not sure if this is part of a wider treewide series or not)

Works either way as long as we get it into .39 so we can cleanup the old stuff. Ditto for the namespace.

I will take them and push them out next week.