projects/linux·commit 35ed319a

[PATCH] kdump: export per cpu crash notes pointer through sysfs (fix)

35ed319a · Vivek Goyal <[email protected]> · 2006-01-09 20:51:42 -08:00

Removes the call to get_cpu() and put_cpu() as it is not required.

Signed-off-by: Vivek Goyal <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
35ed319a36cdfd88fc3debe6ce24e756bc474cce
Parents
51be5606

Changes

1 files changed · +0 −2

FileStatusAddDelContent
drivers/base/cpu.cmodified+0−2View file

drivers/base/cpu.c

View file
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
index 982e658..07a7f97 100644
--- a/drivers/base/cpu.c
+++ b/drivers/base/cpu.c
@@ -101,10 +101,8 @@ static ssize_t show_crash_notes(struct sys_device *dev, char *buf)
* boot up and this data does not change there after. Hence this
* operation should be safe. No locking required.
*/
- get_cpu();
addr = __pa(per_cpu_ptr(crash_notes, cpunum));
rc = sprintf(buf, "%Lx\n", addr);
- put_cpu();
return rc;
}
static SYSDEV_ATTR(crash_notes, 0400, show_crash_notes, NULL);