[PATCH] kdump: export per cpu crash notes pointer through sysfs (fix)
authorVivek Goyal <vgoyal@in.ibm.com>
Tue, 10 Jan 2006 04:51:42 +0000 (20:51 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 10 Jan 2006 16:01:26 +0000 (08:01 -0800)
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>
drivers/base/cpu.c

index 982e6583cd633a533fe8a7dbdfe30edc3cbd5437..07a7f97e1de9d95a488f9fea90288052786f6e98 100644 (file)
@@ -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);