diff options
author | Vivek Goyal <vgoyal@in.ibm.com> | 2006-01-09 20:51:42 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-10 08:01:26 -0800 |
commit | 35ed319a36cdfd88fc3debe6ce24e756bc474cce (patch) | |
tree | 89d0f142652ae172a33b7433973acd465dd977d1 /drivers/base | |
parent | 51be5606d9ff9eb27ed6514f6172fbd7578a25d6 (diff) | |
download | linux-35ed319a36cdfd88fc3debe6ce24e756bc474cce.tar.gz linux-35ed319a36cdfd88fc3debe6ce24e756bc474cce.tar.bz2 linux-35ed319a36cdfd88fc3debe6ce24e756bc474cce.zip |
[PATCH] kdump: export per cpu crash notes pointer through sysfs (fix)
Removes the call to get_cpu() and put_cpu() as it is not required.
Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/cpu.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 982e6583cd63..07a7f97e1de9 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); |