diff options
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/Kconfig | 1 | ||||
-rw-r--r-- | arch/sh/drivers/dma/dma-sysfs.c | 81 | ||||
-rw-r--r-- | arch/sh/include/asm/dma.h | 4 | ||||
-rw-r--r-- | arch/sh/include/asm/memblock.h | 4 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4/sq.c | 24 | ||||
-rw-r--r-- | arch/sh/kernel/idle.c | 6 | ||||
-rw-r--r-- | arch/sh/kernel/machine_kexec.c | 3 | ||||
-rw-r--r-- | arch/sh/kernel/setup.c | 3 | ||||
-rw-r--r-- | arch/sh/mm/Kconfig | 3 | ||||
-rw-r--r-- | arch/sh/mm/init.c | 3 | ||||
-rw-r--r-- | arch/sh/oprofile/common.c | 4 |
11 files changed, 66 insertions, 70 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 5629e2099130..47a2f1c2cb0d 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -4,6 +4,7 @@ config SUPERH | |||
4 | select CLKDEV_LOOKUP | 4 | select CLKDEV_LOOKUP |
5 | select HAVE_IDE if HAS_IOPORT | 5 | select HAVE_IDE if HAS_IOPORT |
6 | select HAVE_MEMBLOCK | 6 | select HAVE_MEMBLOCK |
7 | select HAVE_MEMBLOCK_NODE_MAP | ||
7 | select HAVE_OPROFILE | 8 | select HAVE_OPROFILE |
8 | select HAVE_GENERIC_DMA_COHERENT | 9 | select HAVE_GENERIC_DMA_COHERENT |
9 | select HAVE_ARCH_TRACEHOOK | 10 | select HAVE_ARCH_TRACEHOOK |
diff --git a/arch/sh/drivers/dma/dma-sysfs.c b/arch/sh/drivers/dma/dma-sysfs.c index 83cc704770d7..b1cb2715ad6e 100644 --- a/arch/sh/drivers/dma/dma-sysfs.c +++ b/arch/sh/drivers/dma/dma-sysfs.c | |||
@@ -12,18 +12,19 @@ | |||
12 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/stat.h> | 14 | #include <linux/stat.h> |
15 | #include <linux/sysdev.h> | 15 | #include <linux/device.h> |
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/err.h> | 17 | #include <linux/err.h> |
18 | #include <linux/string.h> | 18 | #include <linux/string.h> |
19 | #include <asm/dma.h> | 19 | #include <asm/dma.h> |
20 | 20 | ||
21 | static struct sysdev_class dma_sysclass = { | 21 | static struct bus_type dma_subsys = { |
22 | .name = "dma", | 22 | .name = "dma", |
23 | .dev_name = "dma", | ||
23 | }; | 24 | }; |
24 | 25 | ||
25 | static ssize_t dma_show_devices(struct sys_device *dev, | 26 | static ssize_t dma_show_devices(struct device *dev, |
26 | struct sysdev_attribute *attr, char *buf) | 27 | struct device_attribute *attr, char *buf) |
27 | { | 28 | { |
28 | ssize_t len = 0; | 29 | ssize_t len = 0; |
29 | int i; | 30 | int i; |
@@ -43,29 +44,29 @@ static ssize_t dma_show_devices(struct sys_device *dev, | |||
43 | return len; | 44 | return len; |
44 | } | 45 | } |
45 | 46 | ||
46 | static SYSDEV_ATTR(devices, S_IRUGO, dma_show_devices, NULL); | 47 | static DEVICE_ATTR(devices, S_IRUGO, dma_show_devices, NULL); |
47 | 48 | ||
48 | static int __init dma_sysclass_init(void) | 49 | static int __init dma_subsys_init(void) |
49 | { | 50 | { |
50 | int ret; | 51 | int ret; |
51 | 52 | ||
52 | ret = sysdev_class_register(&dma_sysclass); | 53 | ret = subsys_system_register(&dma_subsys, NULL); |
53 | if (unlikely(ret)) | 54 | if (unlikely(ret)) |
54 | return ret; | 55 | return ret; |
55 | 56 | ||
56 | return sysfs_create_file(&dma_sysclass.kset.kobj, &attr_devices.attr); | 57 | return device_create_file(dma_subsys.dev_root, &dev_attr_devices.attr); |
57 | } | 58 | } |
58 | postcore_initcall(dma_sysclass_init); | 59 | postcore_initcall(dma_subsys_init); |
59 | 60 | ||
60 | static ssize_t dma_show_dev_id(struct sys_device *dev, | 61 | static ssize_t dma_show_dev_id(struct device *dev, |
61 | struct sysdev_attribute *attr, char *buf) | 62 | struct device_attribute *attr, char *buf) |
62 | { | 63 | { |
63 | struct dma_channel *channel = to_dma_channel(dev); | 64 | struct dma_channel *channel = to_dma_channel(dev); |
64 | return sprintf(buf, "%s\n", channel->dev_id); | 65 | return sprintf(buf, "%s\n", channel->dev_id); |
65 | } | 66 | } |
66 | 67 | ||
67 | static ssize_t dma_store_dev_id(struct sys_device *dev, | 68 | static ssize_t dma_store_dev_id(struct device *dev, |
68 | struct sysdev_attribute *attr, | 69 | struct device_attribute *attr, |
69 | const char *buf, size_t count) | 70 | const char *buf, size_t count) |
70 | { | 71 | { |
71 | struct dma_channel *channel = to_dma_channel(dev); | 72 | struct dma_channel *channel = to_dma_channel(dev); |
@@ -73,10 +74,10 @@ static ssize_t dma_store_dev_id(struct sys_device *dev, | |||
73 | return count; | 74 | return count; |
74 | } | 75 | } |
75 | 76 | ||
76 | static SYSDEV_ATTR(dev_id, S_IRUGO | S_IWUSR, dma_show_dev_id, dma_store_dev_id); | 77 | static DEVICE_ATTR(dev_id, S_IRUGO | S_IWUSR, dma_show_dev_id, dma_store_dev_id); |
77 | 78 | ||
78 | static ssize_t dma_store_config(struct sys_device *dev, | 79 | static ssize_t dma_store_config(struct device *dev, |
79 | struct sysdev_attribute *attr, | 80 | struct device_attribute *attr, |
80 | const char *buf, size_t count) | 81 | const char *buf, size_t count) |
81 | { | 82 | { |
82 | struct dma_channel *channel = to_dma_channel(dev); | 83 | struct dma_channel *channel = to_dma_channel(dev); |
@@ -88,17 +89,17 @@ static ssize_t dma_store_config(struct sys_device *dev, | |||
88 | return count; | 89 | return count; |
89 | } | 90 | } |
90 | 91 | ||
91 | static SYSDEV_ATTR(config, S_IWUSR, NULL, dma_store_config); | 92 | static DEVICE_ATTR(config, S_IWUSR, NULL, dma_store_config); |
92 | 93 | ||
93 | static ssize_t dma_show_mode(struct sys_device *dev, | 94 | static ssize_t dma_show_mode(struct device *dev, |
94 | struct sysdev_attribute *attr, char *buf) | 95 | struct device_attribute *attr, char *buf) |
95 | { | 96 | { |
96 | struct dma_channel *channel = to_dma_channel(dev); | 97 | struct dma_channel *channel = to_dma_channel(dev); |
97 | return sprintf(buf, "0x%08x\n", channel->mode); | 98 | return sprintf(buf, "0x%08x\n", channel->mode); |
98 | } | 99 | } |
99 | 100 | ||
100 | static ssize_t dma_store_mode(struct sys_device *dev, | 101 | static ssize_t dma_store_mode(struct device *dev, |
101 | struct sysdev_attribute *attr, | 102 | struct device_attribute *attr, |
102 | const char *buf, size_t count) | 103 | const char *buf, size_t count) |
103 | { | 104 | { |
104 | struct dma_channel *channel = to_dma_channel(dev); | 105 | struct dma_channel *channel = to_dma_channel(dev); |
@@ -106,38 +107,38 @@ static ssize_t dma_store_mode(struct sys_device *dev, | |||
106 | return count; | 107 | return count; |
107 | } | 108 | } |
108 | 109 | ||
109 | static SYSDEV_ATTR(mode, S_IRUGO | S_IWUSR, dma_show_mode, dma_store_mode); | 110 | static DEVICE_ATTR(mode, S_IRUGO | S_IWUSR, dma_show_mode, dma_store_mode); |
110 | 111 | ||
111 | #define dma_ro_attr(field, fmt) \ | 112 | #define dma_ro_attr(field, fmt) \ |
112 | static ssize_t dma_show_##field(struct sys_device *dev, \ | 113 | static ssize_t dma_show_##field(struct device *dev, \ |
113 | struct sysdev_attribute *attr, char *buf)\ | 114 | struct device_attribute *attr, char *buf)\ |
114 | { \ | 115 | { \ |
115 | struct dma_channel *channel = to_dma_channel(dev); \ | 116 | struct dma_channel *channel = to_dma_channel(dev); \ |
116 | return sprintf(buf, fmt, channel->field); \ | 117 | return sprintf(buf, fmt, channel->field); \ |
117 | } \ | 118 | } \ |
118 | static SYSDEV_ATTR(field, S_IRUGO, dma_show_##field, NULL); | 119 | static DEVICE_ATTR(field, S_IRUGO, dma_show_##field, NULL); |
119 | 120 | ||
120 | dma_ro_attr(count, "0x%08x\n"); | 121 | dma_ro_attr(count, "0x%08x\n"); |
121 | dma_ro_attr(flags, "0x%08lx\n"); | 122 | dma_ro_attr(flags, "0x%08lx\n"); |
122 | 123 | ||
123 | int dma_create_sysfs_files(struct dma_channel *chan, struct dma_info *info) | 124 | int dma_create_sysfs_files(struct dma_channel *chan, struct dma_info *info) |
124 | { | 125 | { |
125 | struct sys_device *dev = &chan->dev; | 126 | struct device *dev = &chan->dev; |
126 | char name[16]; | 127 | char name[16]; |
127 | int ret; | 128 | int ret; |
128 | 129 | ||
129 | dev->id = chan->vchan; | 130 | dev->id = chan->vchan; |
130 | dev->cls = &dma_sysclass; | 131 | dev->bus = &dma_subsys; |
131 | 132 | ||
132 | ret = sysdev_register(dev); | 133 | ret = device_register(dev); |
133 | if (ret) | 134 | if (ret) |
134 | return ret; | 135 | return ret; |
135 | 136 | ||
136 | ret |= sysdev_create_file(dev, &attr_dev_id); | 137 | ret |= device_create_file(dev, &dev_attr_dev_id); |
137 | ret |= sysdev_create_file(dev, &attr_count); | 138 | ret |= device_create_file(dev, &dev_attr_count); |
138 | ret |= sysdev_create_file(dev, &attr_mode); | 139 | ret |= device_create_file(dev, &dev_attr_mode); |
139 | ret |= sysdev_create_file(dev, &attr_flags); | 140 | ret |= device_create_file(dev, &dev_attr_flags); |
140 | ret |= sysdev_create_file(dev, &attr_config); | 141 | ret |= device_create_file(dev, &dev_attr_config); |
141 | 142 | ||
142 | if (unlikely(ret)) { | 143 | if (unlikely(ret)) { |
143 | dev_err(&info->pdev->dev, "Failed creating attrs\n"); | 144 | dev_err(&info->pdev->dev, "Failed creating attrs\n"); |
@@ -150,17 +151,17 @@ int dma_create_sysfs_files(struct dma_channel *chan, struct dma_info *info) | |||
150 | 151 | ||
151 | void dma_remove_sysfs_files(struct dma_channel *chan, struct dma_info *info) | 152 | void dma_remove_sysfs_files(struct dma_channel *chan, struct dma_info *info) |
152 | { | 153 | { |
153 | struct sys_device *dev = &chan->dev; | 154 | struct device *dev = &chan->dev; |
154 | char name[16]; | 155 | char name[16]; |
155 | 156 | ||
156 | sysdev_remove_file(dev, &attr_dev_id); | 157 | device_remove_file(dev, &dev_attr_dev_id); |
157 | sysdev_remove_file(dev, &attr_count); | 158 | device_remove_file(dev, &dev_attr_count); |
158 | sysdev_remove_file(dev, &attr_mode); | 159 | device_remove_file(dev, &dev_attr_mode); |
159 | sysdev_remove_file(dev, &attr_flags); | 160 | device_remove_file(dev, &dev_attr_flags); |
160 | sysdev_remove_file(dev, &attr_config); | 161 | device_remove_file(dev, &dev_attr_config); |
161 | 162 | ||
162 | snprintf(name, sizeof(name), "dma%d", chan->chan); | 163 | snprintf(name, sizeof(name), "dma%d", chan->chan); |
163 | sysfs_remove_link(&info->pdev->dev.kobj, name); | 164 | sysfs_remove_link(&info->pdev->dev.kobj, name); |
164 | 165 | ||
165 | sysdev_unregister(dev); | 166 | device_unregister(dev); |
166 | } | 167 | } |
diff --git a/arch/sh/include/asm/dma.h b/arch/sh/include/asm/dma.h index 07373a074090..6aa2080c0065 100644 --- a/arch/sh/include/asm/dma.h +++ b/arch/sh/include/asm/dma.h | |||
@@ -14,7 +14,7 @@ | |||
14 | #include <linux/spinlock.h> | 14 | #include <linux/spinlock.h> |
15 | #include <linux/wait.h> | 15 | #include <linux/wait.h> |
16 | #include <linux/sched.h> | 16 | #include <linux/sched.h> |
17 | #include <linux/sysdev.h> | 17 | #include <linux/device.h> |
18 | #include <cpu/dma.h> | 18 | #include <cpu/dma.h> |
19 | #include <asm-generic/dma.h> | 19 | #include <asm-generic/dma.h> |
20 | 20 | ||
@@ -91,7 +91,7 @@ struct dma_channel { | |||
91 | 91 | ||
92 | wait_queue_head_t wait_queue; | 92 | wait_queue_head_t wait_queue; |
93 | 93 | ||
94 | struct sys_device dev; | 94 | struct device dev; |
95 | void *priv_data; | 95 | void *priv_data; |
96 | }; | 96 | }; |
97 | 97 | ||
diff --git a/arch/sh/include/asm/memblock.h b/arch/sh/include/asm/memblock.h deleted file mode 100644 index e87063fad2ea..000000000000 --- a/arch/sh/include/asm/memblock.h +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | #ifndef __ASM_SH_MEMBLOCK_H | ||
2 | #define __ASM_SH_MEMBLOCK_H | ||
3 | |||
4 | #endif /* __ASM_SH_MEMBLOCK_H */ | ||
diff --git a/arch/sh/kernel/cpu/sh4/sq.c b/arch/sh/kernel/cpu/sh4/sq.c index f0907995b4c9..a8140f0bbf6c 100644 --- a/arch/sh/kernel/cpu/sh4/sq.c +++ b/arch/sh/kernel/cpu/sh4/sq.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/cpu.h> | 14 | #include <linux/cpu.h> |
15 | #include <linux/bitmap.h> | 15 | #include <linux/bitmap.h> |
16 | #include <linux/sysdev.h> | 16 | #include <linux/device.h> |
17 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
18 | #include <linux/module.h> | 18 | #include <linux/module.h> |
19 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
@@ -337,9 +337,9 @@ static struct kobj_type ktype_percpu_entry = { | |||
337 | .default_attrs = sq_sysfs_attrs, | 337 | .default_attrs = sq_sysfs_attrs, |
338 | }; | 338 | }; |
339 | 339 | ||
340 | static int __devinit sq_sysdev_add(struct sys_device *sysdev) | 340 | static int __devinit sq_dev_add(struct device *dev) |
341 | { | 341 | { |
342 | unsigned int cpu = sysdev->id; | 342 | unsigned int cpu = dev->id; |
343 | struct kobject *kobj; | 343 | struct kobject *kobj; |
344 | int error; | 344 | int error; |
345 | 345 | ||
@@ -348,25 +348,27 @@ static int __devinit sq_sysdev_add(struct sys_device *sysdev) | |||
348 | return -ENOMEM; | 348 | return -ENOMEM; |
349 | 349 | ||
350 | kobj = sq_kobject[cpu]; | 350 | kobj = sq_kobject[cpu]; |
351 | error = kobject_init_and_add(kobj, &ktype_percpu_entry, &sysdev->kobj, | 351 | error = kobject_init_and_add(kobj, &ktype_percpu_entry, &dev->kobj, |
352 | "%s", "sq"); | 352 | "%s", "sq"); |
353 | if (!error) | 353 | if (!error) |
354 | kobject_uevent(kobj, KOBJ_ADD); | 354 | kobject_uevent(kobj, KOBJ_ADD); |
355 | return error; | 355 | return error; |
356 | } | 356 | } |
357 | 357 | ||
358 | static int __devexit sq_sysdev_remove(struct sys_device *sysdev) | 358 | static int __devexit sq_dev_remove(struct device *dev) |
359 | { | 359 | { |
360 | unsigned int cpu = sysdev->id; | 360 | unsigned int cpu = dev->id; |
361 | struct kobject *kobj = sq_kobject[cpu]; | 361 | struct kobject *kobj = sq_kobject[cpu]; |
362 | 362 | ||
363 | kobject_put(kobj); | 363 | kobject_put(kobj); |
364 | return 0; | 364 | return 0; |
365 | } | 365 | } |
366 | 366 | ||
367 | static struct sysdev_driver sq_sysdev_driver = { | 367 | static struct subsys_interface sq_interface = { |
368 | .add = sq_sysdev_add, | 368 | .name = "sq" |
369 | .remove = __devexit_p(sq_sysdev_remove), | 369 | .subsys = &cpu_subsys, |
370 | .add_dev = sq_dev_add, | ||
371 | .remove_dev = __devexit_p(sq_dev_remove), | ||
370 | }; | 372 | }; |
371 | 373 | ||
372 | static int __init sq_api_init(void) | 374 | static int __init sq_api_init(void) |
@@ -386,7 +388,7 @@ static int __init sq_api_init(void) | |||
386 | if (unlikely(!sq_bitmap)) | 388 | if (unlikely(!sq_bitmap)) |
387 | goto out; | 389 | goto out; |
388 | 390 | ||
389 | ret = sysdev_driver_register(&cpu_sysdev_class, &sq_sysdev_driver); | 391 | ret = subsys_interface_register(&sq_interface); |
390 | if (unlikely(ret != 0)) | 392 | if (unlikely(ret != 0)) |
391 | goto out; | 393 | goto out; |
392 | 394 | ||
@@ -401,7 +403,7 @@ out: | |||
401 | 403 | ||
402 | static void __exit sq_api_exit(void) | 404 | static void __exit sq_api_exit(void) |
403 | { | 405 | { |
404 | sysdev_driver_unregister(&cpu_sysdev_class, &sq_sysdev_driver); | 406 | subsys_interface_unregister(&sq_interface); |
405 | kfree(sq_bitmap); | 407 | kfree(sq_bitmap); |
406 | kmem_cache_destroy(sq_cache); | 408 | kmem_cache_destroy(sq_cache); |
407 | } | 409 | } |
diff --git a/arch/sh/kernel/idle.c b/arch/sh/kernel/idle.c index db4ecd731a00..406508d4ce74 100644 --- a/arch/sh/kernel/idle.c +++ b/arch/sh/kernel/idle.c | |||
@@ -89,7 +89,8 @@ void cpu_idle(void) | |||
89 | 89 | ||
90 | /* endless idle loop with no priority at all */ | 90 | /* endless idle loop with no priority at all */ |
91 | while (1) { | 91 | while (1) { |
92 | tick_nohz_stop_sched_tick(1); | 92 | tick_nohz_idle_enter(); |
93 | rcu_idle_enter(); | ||
93 | 94 | ||
94 | while (!need_resched()) { | 95 | while (!need_resched()) { |
95 | check_pgt_cache(); | 96 | check_pgt_cache(); |
@@ -111,7 +112,8 @@ void cpu_idle(void) | |||
111 | start_critical_timings(); | 112 | start_critical_timings(); |
112 | } | 113 | } |
113 | 114 | ||
114 | tick_nohz_restart_sched_tick(); | 115 | rcu_idle_exit(); |
116 | tick_nohz_idle_exit(); | ||
115 | preempt_enable_no_resched(); | 117 | preempt_enable_no_resched(); |
116 | schedule(); | 118 | schedule(); |
117 | preempt_disable(); | 119 | preempt_disable(); |
diff --git a/arch/sh/kernel/machine_kexec.c b/arch/sh/kernel/machine_kexec.c index c5a33f007f88..9fea49f6e667 100644 --- a/arch/sh/kernel/machine_kexec.c +++ b/arch/sh/kernel/machine_kexec.c | |||
@@ -157,9 +157,6 @@ void __init reserve_crashkernel(void) | |||
157 | unsigned long long crash_size, crash_base; | 157 | unsigned long long crash_size, crash_base; |
158 | int ret; | 158 | int ret; |
159 | 159 | ||
160 | /* this is necessary because of memblock_phys_mem_size() */ | ||
161 | memblock_analyze(); | ||
162 | |||
163 | ret = parse_crashkernel(boot_command_line, memblock_phys_mem_size(), | 160 | ret = parse_crashkernel(boot_command_line, memblock_phys_mem_size(), |
164 | &crash_size, &crash_base); | 161 | &crash_size, &crash_base); |
165 | if (ret == 0 && crash_size > 0) { | 162 | if (ret == 0 && crash_size > 0) { |
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index 1a0e946679a4..7b57bf1dc855 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c | |||
@@ -230,7 +230,8 @@ void __init __add_active_range(unsigned int nid, unsigned long start_pfn, | |||
230 | pmb_bolt_mapping((unsigned long)__va(start), start, end - start, | 230 | pmb_bolt_mapping((unsigned long)__va(start), start, end - start, |
231 | PAGE_KERNEL); | 231 | PAGE_KERNEL); |
232 | 232 | ||
233 | add_active_range(nid, start_pfn, end_pfn); | 233 | memblock_set_node(PFN_PHYS(start_pfn), |
234 | PFN_PHYS(end_pfn - start_pfn), nid); | ||
234 | } | 235 | } |
235 | 236 | ||
236 | void __init __weak plat_early_device_setup(void) | 237 | void __init __weak plat_early_device_setup(void) |
diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index c3e61b366493..cb8f9920f4dd 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig | |||
@@ -143,9 +143,6 @@ config MAX_ACTIVE_REGIONS | |||
143 | CPU_SUBTYPE_SH7785) | 143 | CPU_SUBTYPE_SH7785) |
144 | default "1" | 144 | default "1" |
145 | 145 | ||
146 | config ARCH_POPULATES_NODE_MAP | ||
147 | def_bool y | ||
148 | |||
149 | config ARCH_SELECT_MEMORY_MODEL | 146 | config ARCH_SELECT_MEMORY_MODEL |
150 | def_bool y | 147 | def_bool y |
151 | 148 | ||
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index 939ca0f356f6..82cc576fab15 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c | |||
@@ -324,7 +324,6 @@ void __init paging_init(void) | |||
324 | unsigned long vaddr, end; | 324 | unsigned long vaddr, end; |
325 | int nid; | 325 | int nid; |
326 | 326 | ||
327 | memblock_init(); | ||
328 | sh_mv.mv_mem_init(); | 327 | sh_mv.mv_mem_init(); |
329 | 328 | ||
330 | early_reserve_mem(); | 329 | early_reserve_mem(); |
@@ -337,7 +336,7 @@ void __init paging_init(void) | |||
337 | sh_mv.mv_mem_reserve(); | 336 | sh_mv.mv_mem_reserve(); |
338 | 337 | ||
339 | memblock_enforce_memory_limit(memory_limit); | 338 | memblock_enforce_memory_limit(memory_limit); |
340 | memblock_analyze(); | 339 | memblock_allow_resize(); |
341 | 340 | ||
342 | memblock_dump_all(); | 341 | memblock_dump_all(); |
343 | 342 | ||
diff --git a/arch/sh/oprofile/common.c b/arch/sh/oprofile/common.c index b4c2d2b946dd..e4dd5d5a1115 100644 --- a/arch/sh/oprofile/common.c +++ b/arch/sh/oprofile/common.c | |||
@@ -49,7 +49,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops) | |||
49 | return oprofile_perf_init(ops); | 49 | return oprofile_perf_init(ops); |
50 | } | 50 | } |
51 | 51 | ||
52 | void __exit oprofile_arch_exit(void) | 52 | void oprofile_arch_exit(void) |
53 | { | 53 | { |
54 | oprofile_perf_exit(); | 54 | oprofile_perf_exit(); |
55 | kfree(sh_pmu_op_name); | 55 | kfree(sh_pmu_op_name); |
@@ -60,5 +60,5 @@ int __init oprofile_arch_init(struct oprofile_operations *ops) | |||
60 | ops->backtrace = sh_backtrace; | 60 | ops->backtrace = sh_backtrace; |
61 | return -ENODEV; | 61 | return -ENODEV; |
62 | } | 62 | } |
63 | void __exit oprofile_arch_exit(void) {} | 63 | void oprofile_arch_exit(void) {} |
64 | #endif /* CONFIG_HW_PERF_EVENTS */ | 64 | #endif /* CONFIG_HW_PERF_EVENTS */ |