aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/cpu.c2
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)
101 * boot up and this data does not change there after. Hence this 101 * boot up and this data does not change there after. Hence this
102 * operation should be safe. No locking required. 102 * operation should be safe. No locking required.
103 */ 103 */
104 get_cpu();
105 addr = __pa(per_cpu_ptr(crash_notes, cpunum)); 104 addr = __pa(per_cpu_ptr(crash_notes, cpunum));
106 rc = sprintf(buf, "%Lx\n", addr); 105 rc = sprintf(buf, "%Lx\n", addr);
107 put_cpu();
108 return rc; 106 return rc;
109} 107}
110static SYSDEV_ATTR(crash_notes, 0400, show_crash_notes, NULL); 108static SYSDEV_ATTR(crash_notes, 0400, show_crash_notes, NULL);