Skip to content

Commit e968001

Browse files
committed
Merge tag 'sh-for-v6.11-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubitz/sh-linux
Pull sh updates from John Paul Adrian Glaubitz: "This is rather small this time and contains just three changes. The first change by Oscar Salvador drops support for memory hotplug and hotremove for sh as the kernel stopped supporting it on 32-bit platforms since 7ec58a2 ("mm/memory_hotplug: restrict CONFIG_MEMORY_HOTPLUG to 64 bit"). That then results in a follow-up change to update all affected board config files. The third change comes from Jeff Johnson which adds the missing MODULE_DESCRIPTION() macro to the push-switch driver" * tag 'sh-for-v6.11-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubitz/sh-linux: sh: push-switch: Add missing MODULE_DESCRIPTION() macro sh: config: Drop CONFIG_MEMORY_{HOTPLUG,HOTREMOVE} sh: Drop support for memory hotplug and memory hotremove
2 parents f488790 + 8fe76a1 commit e968001

File tree

7 files changed

+1
-40
lines changed

7 files changed

+1
-40
lines changed

arch/sh/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ config SUPERH
33
def_bool y
44
select ARCH_32BIT_OFF_T
55
select ARCH_HAS_CPU_CACHE_ALIASING
6-
select ARCH_ENABLE_MEMORY_HOTPLUG if SPARSEMEM && MMU
7-
select ARCH_ENABLE_MEMORY_HOTREMOVE if SPARSEMEM && MMU
86
select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A)
97
select ARCH_HAS_BINFMT_FLAT if !MMU
108
select ARCH_HAS_CPU_FINALIZE_INIT

arch/sh/configs/apsh4ad0a_defconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ CONFIG_BFQ_GROUP_IOSCHED=y
2424
CONFIG_CPU_SUBTYPE_SH7786=y
2525
CONFIG_MEMORY_SIZE=0x10000000
2626
CONFIG_HUGETLB_PAGE_SIZE_1MB=y
27-
CONFIG_MEMORY_HOTPLUG=y
28-
CONFIG_MEMORY_HOTREMOVE=y
2927
CONFIG_KSM=y
3028
CONFIG_SH_STORE_QUEUES=y
3129
CONFIG_SH_APSH4AD0A=y

arch/sh/configs/sdk7786_defconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ CONFIG_MEMORY_SIZE=0x20000000
4343
CONFIG_PMB=y
4444
CONFIG_NUMA=y
4545
CONFIG_HUGETLB_PAGE_SIZE_64MB=y
46-
CONFIG_MEMORY_HOTPLUG=y
47-
CONFIG_MEMORY_HOTREMOVE=y
4846
CONFIG_KSM=y
4947
CONFIG_SH_STORE_QUEUES=y
5048
CONFIG_SPECULATIVE_EXECUTION=y

arch/sh/configs/shx3_defconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ CONFIG_CPU_SUBTYPE_SHX3=y
3131
CONFIG_MEMORY_START=0x0c000000
3232
CONFIG_NUMA=y
3333
CONFIG_PAGE_SIZE_64KB=y
34-
CONFIG_MEMORY_HOTPLUG=y
35-
CONFIG_MEMORY_HOTREMOVE=y
3634
CONFIG_SH_STORE_QUEUES=y
3735
CONFIG_SH_X3PROTO=y
3836
CONFIG_NO_HZ=y

arch/sh/drivers/push-switch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,5 @@ module_exit(switch_exit);
131131

132132
MODULE_VERSION(DRV_VERSION);
133133
MODULE_AUTHOR("Paul Mundt");
134+
MODULE_DESCRIPTION("Generic push-switch framework");
134135
MODULE_LICENSE("GPL v2");

arch/sh/mm/Kconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,6 @@ config ARCH_SPARSEMEM_DEFAULT
144144
config ARCH_SELECT_MEMORY_MODEL
145145
def_bool y
146146

147-
config ARCH_MEMORY_PROBE
148-
def_bool y
149-
depends on MEMORY_HOTPLUG
150-
151147
config IOREMAP_FIXED
152148
def_bool y
153149
depends on X2TLB

arch/sh/mm/init.c

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -395,31 +395,3 @@ void __init mem_init(void)
395395

396396
mem_init_done = 1;
397397
}
398-
399-
#ifdef CONFIG_MEMORY_HOTPLUG
400-
int arch_add_memory(int nid, u64 start, u64 size,
401-
struct mhp_params *params)
402-
{
403-
unsigned long start_pfn = PFN_DOWN(start);
404-
unsigned long nr_pages = size >> PAGE_SHIFT;
405-
int ret;
406-
407-
if (WARN_ON_ONCE(params->pgprot.pgprot != PAGE_KERNEL.pgprot))
408-
return -EINVAL;
409-
410-
/* We only have ZONE_NORMAL, so this is easy.. */
411-
ret = __add_pages(nid, start_pfn, nr_pages, params);
412-
if (unlikely(ret))
413-
printk("%s: Failed, __add_pages() == %d\n", __func__, ret);
414-
415-
return ret;
416-
}
417-
418-
void arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap)
419-
{
420-
unsigned long start_pfn = PFN_DOWN(start);
421-
unsigned long nr_pages = size >> PAGE_SHIFT;
422-
423-
__remove_pages(start_pfn, nr_pages, altmap);
424-
}
425-
#endif /* CONFIG_MEMORY_HOTPLUG */

0 commit comments

Comments
 (0)