Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110817
b: refs/heads/master
c: b1e7661
h: refs/heads/master
i:
  110815: 5e53e7f
v: v3
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Oct 10, 2008
1 parent 37b66ca commit fac72ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b2bbb642ac2829006a81ae164e2f06ebc22f81dd
refs/heads/master: b1e766137fe2462fd110e2930f74ef5636adb436
8 changes: 6 additions & 2 deletions trunk/drivers/s390/cio/cio.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ cio_tpi(void)
struct tpi_info *tpi_info;
struct subchannel *sch;
struct irb *irb;
int irq_context;

tpi_info = (struct tpi_info *) __LC_SUBCHANNEL_ID;
if (tpi (NULL) != 1)
Expand All @@ -126,15 +127,18 @@ cio_tpi(void)
sch = (struct subchannel *)(unsigned long)tpi_info->intparm;
if (!sch)
return 1;
local_bh_disable();
irq_context = in_interrupt();
if (!irq_context)
local_bh_disable();
irq_enter ();
spin_lock(sch->lock);
memcpy(&sch->schib.scsw, &irb->scsw, sizeof(union scsw));
if (sch->driver && sch->driver->irq)
sch->driver->irq(sch);
spin_unlock(sch->lock);
irq_exit ();
_local_bh_enable();
if (!irq_context)
_local_bh_enable();
return 1;
}

Expand Down

0 comments on commit fac72ec

Please sign in to comment.