Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363243
b: refs/heads/master
c: eca4549
h: refs/heads/master
i:
  363241: 65fb8c1
  363239: 0e2a2de
v: v3
  • Loading branch information
Zhang Yanfei authored and Greg Kroah-Hartman committed Mar 29, 2013
1 parent d3916c1 commit 4f4e81d
Show file tree
Hide file tree
Showing 2 changed files with 15 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: 6ae07f27ab202069bd567967a0099070eb7f77d5
refs/heads/master: eca4549f57a19f8881dcd7b9cef719b3452003c0
14 changes: 14 additions & 0 deletions trunk/drivers/base/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,17 @@ static ssize_t show_crash_notes(struct device *dev, struct device_attribute *att
return rc;
}
static DEVICE_ATTR(crash_notes, 0400, show_crash_notes, NULL);

static ssize_t show_crash_notes_size(struct device *dev,
struct device_attribute *attr,
char *buf)
{
ssize_t rc;

rc = sprintf(buf, "%lu\n", sizeof(note_buf_t));
return rc;
}
static DEVICE_ATTR(crash_notes_size, 0400, show_crash_notes_size, NULL);
#endif

/*
Expand Down Expand Up @@ -259,6 +270,9 @@ int __cpuinit register_cpu(struct cpu *cpu, int num)
#ifdef CONFIG_KEXEC
if (!error)
error = device_create_file(&cpu->dev, &dev_attr_crash_notes);
if (!error)
error = device_create_file(&cpu->dev,
&dev_attr_crash_notes_size);
#endif
return error;
}
Expand Down

0 comments on commit 4f4e81d

Please sign in to comment.