s390/lowcore: replace lowcore irb array with a per-cpu variable
Remove the 96-byte irb array from the lowcore and create a per-cpu variable instead. That way we will pick up any change in the definition of the struct irb automatically. Acked-By: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
@@ -739,7 +739,7 @@ ccw_device_irq(struct ccw_device *cdev, enum dev_event dev_event)
|
||||
struct irb *irb;
|
||||
int is_cmd;
|
||||
|
||||
irb = (struct irb *)&S390_lowcore.irb;
|
||||
irb = &__get_cpu_var(cio_irb);
|
||||
is_cmd = !scsw_is_tm(&irb->scsw);
|
||||
/* Check for unsolicited interrupt. */
|
||||
if (!scsw_is_solicited(&irb->scsw)) {
|
||||
@@ -805,7 +805,7 @@ ccw_device_w4sense(struct ccw_device *cdev, enum dev_event dev_event)
|
||||
{
|
||||
struct irb *irb;
|
||||
|
||||
irb = (struct irb *)&S390_lowcore.irb;
|
||||
irb = &__get_cpu_var(cio_irb);
|
||||
/* Check for unsolicited interrupt. */
|
||||
if (scsw_stctl(&irb->scsw) ==
|
||||
(SCSW_STCTL_STATUS_PEND | SCSW_STCTL_ALERT_STATUS)) {
|
||||
|
Reference in New Issue
Block a user