From: Vivek Goyal Removes the call to get_cpu() and put_cpu() as it is not required. Signed-off-by: Vivek Goyal Signed-off-by: Andrew Morton --- drivers/base/cpu.c | 2 -- 1 files changed, 2 deletions(-) diff -puN drivers/base/cpu.c~kdump-export-crash-notes-sysfs-remove-get-cpu drivers/base/cpu.c --- devel/drivers/base/cpu.c~kdump-export-crash-notes-sysfs-remove-get-cpu 2005-11-18 18:00:06.000000000 -0800 +++ devel-akpm/drivers/base/cpu.c 2005-11-18 18:00:06.000000000 -0800 @@ -101,10 +101,8 @@ static ssize_t show_crash_notes(struct s * 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); _