From: Vivek Goyal Date: Tue, 10 Jan 2006 04:51:42 +0000 (-0800) Subject: [PATCH] kdump: export per cpu crash notes pointer through sysfs (fix) X-Git-Tag: v2.6.16-rc1~637 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35ed319a36cdfd88fc3debe6ce24e756bc474cce;p=linux-2.6 [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 982e6583cd..07a7f97e1d 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);