Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272060
b: refs/heads/master
c: fa8ff29
h: refs/heads/master
v: v3
  • Loading branch information
Michael Holzheu authored and Martin Schwidefsky committed Oct 30, 2011
1 parent ce09774 commit 97116dd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 60a0c68df2632feaa4a986af084650d1165d89c5
refs/heads/master: fa8ff292bb4844cc0b66b7b24d611eb7177f7ded
18 changes: 9 additions & 9 deletions trunk/kernel/kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1380,24 +1380,23 @@ int __init parse_crashkernel(char *cmdline,
}



void crash_save_vmcoreinfo(void)
static void update_vmcoreinfo_note(void)
{
u32 *buf;
u32 *buf = vmcoreinfo_note;

if (!vmcoreinfo_size)
return;

vmcoreinfo_append_str("CRASHTIME=%ld", get_seconds());

buf = (u32 *)vmcoreinfo_note;

buf = append_elf_note(buf, VMCOREINFO_NOTE_NAME, 0, vmcoreinfo_data,
vmcoreinfo_size);

final_note(buf);
}

void crash_save_vmcoreinfo(void)
{
vmcoreinfo_append_str("CRASHTIME=%ld", get_seconds());
update_vmcoreinfo_note();
}

void vmcoreinfo_append_str(const char *fmt, ...)
{
va_list args;
Expand Down Expand Up @@ -1483,6 +1482,7 @@ static int __init crash_save_vmcoreinfo_init(void)
VMCOREINFO_NUMBER(PG_swapcache);

arch_crash_save_vmcoreinfo();
update_vmcoreinfo_note();

return 0;
}
Expand Down

0 comments on commit 97116dd

Please sign in to comment.