Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91453
b: refs/heads/master
c: 7415d5e
h: refs/heads/master
i:
  91451: c87ca53
v: v3
  • Loading branch information
Manish Ahuja authored and Paul Mackerras committed Mar 25, 2008
1 parent 6bcfb89 commit 6d5c546
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 654f596da4a83a8d2734fba26c2a1257533e6d75
refs/heads/master: 7415d5e0bec6ecd79d2698ae9655b10be47d8aa8
18 changes: 18 additions & 0 deletions trunk/arch/powerpc/platforms/pseries/phyp_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,18 @@ static void print_dump_header(const struct phyp_dump_header *ph)
#endif
}

static ssize_t show_phyp_dump_active(struct kobject *kobj,
struct kobj_attribute *attr, char *buf)
{

/* create filesystem entry so kdump is phyp-dump aware */
return sprintf(buf, "%lx\n", phyp_dump_info->phyp_dump_at_boot);
}

static struct kobj_attribute pdl = __ATTR(phyp_dump_active, 0600,
show_phyp_dump_active,
NULL);

static void register_dump_area(struct phyp_dump_header *ph, unsigned long addr)
{
int rc;
Expand All @@ -204,7 +216,13 @@ static void register_dump_area(struct phyp_dump_header *ph, unsigned long addr)
printk(KERN_ERR "phyp-dump: unexpected error (%d) on "
"register\n", rc);
print_dump_header(ph);
return;
}

rc = sysfs_create_file(kernel_kobj, &pdl.attr);
if (rc)
printk(KERN_ERR "phyp-dump: unable to create sysfs"
" file (%d)\n", rc);
}

static
Expand Down

0 comments on commit 6d5c546

Please sign in to comment.