Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356108
b: refs/heads/master
c: 0894b3a
h: refs/heads/master
v: v3
  • Loading branch information
Michael Holzheu authored and Martin Schwidefsky committed Feb 14, 2013
1 parent 5677daa commit 8f57670
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 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: 9a17e972529e07d6e2531e6b6712bf29687df8a6
refs/heads/master: 0894b3ae776a60c6bad994e1d8f809ceb59904da
16 changes: 12 additions & 4 deletions trunk/arch/s390/kernel/ipl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,16 @@ static struct kobj_attribute dump_type_attr =

static struct kset *dump_kset;

static void diag308_dump(void *dump_block)
{
diag308(DIAG308_SET, dump_block);
while (1) {
if (diag308(DIAG308_DUMP, NULL) != 0x302)
break;
udelay_simple(USEC_PER_SEC);
}
}

static void __dump_run(void *unused)
{
struct ccw_dev_id devid;
Expand All @@ -1432,12 +1442,10 @@ static void __dump_run(void *unused)
__cpcmd(buf, NULL, 0, NULL);
break;
case DUMP_METHOD_CCW_DIAG:
diag308(DIAG308_SET, dump_block_ccw);
diag308(DIAG308_DUMP, NULL);
diag308_dump(dump_block_ccw);
break;
case DUMP_METHOD_FCP_DIAG:
diag308(DIAG308_SET, dump_block_fcp);
diag308(DIAG308_DUMP, NULL);
diag308_dump(dump_block_fcp);
break;
default:
break;
Expand Down

0 comments on commit 8f57670

Please sign in to comment.