Skip to content

Commit 4073723

Browse files
author
Russell King
committed
Merge branch 'misc' into devel
Conflicts: arch/arm/Kconfig arch/arm/common/Makefile arch/arm/kernel/Makefile arch/arm/kernel/smp.c
2 parents 58daf18 + 4ec3eb1 commit 4073723

147 files changed

Lines changed: 1674 additions & 1316 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/arm/00-INDEX‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ memory.txt
3434
- description of the virtual memory layout
3535
nwfpe/
3636
- NWFPE floating point emulator documentation
37+
swp_emulation
38+
- SWP/SWPB emulation handler/logging description

‎Documentation/arm/swp_emulation‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Software emulation of deprecated SWP instruction (CONFIG_SWP_EMULATE)
2+
---------------------------------------------------------------------
3+
4+
ARMv6 architecture deprecates use of the SWP/SWPB instructions, and recommeds
5+
moving to the load-locked/store-conditional instructions LDREX and STREX.
6+
7+
ARMv7 multiprocessing extensions introduce the ability to disable these
8+
instructions, triggering an undefined instruction exception when executed.
9+
Trapped instructions are emulated using an LDREX/STREX or LDREXB/STREXB
10+
sequence. If a memory access fault (an abort) occurs, a segmentation fault is
11+
signalled to the triggering process.
12+
13+
/proc/cpu/swp_emulation holds some statistics/information, including the PID of
14+
the last process to trigger the emulation to be invocated. For example:
15+
---
16+
Emulated SWP: 12
17+
Emulated SWPB: 0
18+
Aborted SWP{B}: 1
19+
Last process: 314
20+
---
21+
22+
NOTE: when accessing uncached shared regions, LDREX/STREX rely on an external
23+
transaction monitoring block called a global monitor to maintain update
24+
atomicity. If your system does not implement a global monitor, this option can
25+
cause programs that perform SWP operations to uncached memory to deadlock, as
26+
the STREX operation will always fail.
27+

‎arch/arm/Kconfig‎

Lines changed: 39 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ config ARM
22
bool
33
default y
44
select HAVE_AOUT
5+
select HAVE_DMA_API_DEBUG
56
select HAVE_IDE
67
select HAVE_MEMBLOCK
78
select RTC_LIB
@@ -36,6 +37,9 @@ config ARM
3637
config HAVE_PWM
3738
bool
3839

40+
config MIGHT_HAVE_PCI
41+
bool
42+
3943
config SYS_SUPPORTS_APM_EMULATION
4044
bool
4145

@@ -226,7 +230,7 @@ config ARCH_INTEGRATOR
226230
bool "ARM Ltd. Integrator family"
227231
select ARM_AMBA
228232
select ARCH_HAS_CPUFREQ
229-
select COMMON_CLKDEV
233+
select CLKDEV_LOOKUP
230234
select ICST
231235
select GENERIC_CLOCKEVENTS
232236
select PLAT_VERSATILE
@@ -236,7 +240,7 @@ config ARCH_INTEGRATOR
236240
config ARCH_REALVIEW
237241
bool "ARM Ltd. RealView family"
238242
select ARM_AMBA
239-
select COMMON_CLKDEV
243+
select CLKDEV_LOOKUP
240244
select HAVE_SCHED_CLOCK
241245
select ICST
242246
select GENERIC_CLOCKEVENTS
@@ -251,7 +255,7 @@ config ARCH_VERSATILE
251255
bool "ARM Ltd. Versatile family"
252256
select ARM_AMBA
253257
select ARM_VIC
254-
select COMMON_CLKDEV
258+
select CLKDEV_LOOKUP
255259
select HAVE_SCHED_CLOCK
256260
select ICST
257261
select GENERIC_CLOCKEVENTS
@@ -266,7 +270,7 @@ config ARCH_VEXPRESS
266270
select ARCH_WANT_OPTIONAL_GPIOLIB
267271
select ARM_AMBA
268272
select ARM_TIMER_SP804
269-
select COMMON_CLKDEV
273+
select CLKDEV_LOOKUP
270274
select GENERIC_CLOCKEVENTS
271275
select HAVE_CLK
272276
select HAVE_SCHED_CLOCK
@@ -288,7 +292,7 @@ config ARCH_BCMRING
288292
depends on MMU
289293
select CPU_V6
290294
select ARM_AMBA
291-
select COMMON_CLKDEV
295+
select CLKDEV_LOOKUP
292296
select GENERIC_CLOCKEVENTS
293297
select ARCH_WANT_OPTIONAL_GPIOLIB
294298
help
@@ -306,6 +310,7 @@ config ARCH_CNS3XXX
306310
select CPU_V6
307311
select GENERIC_CLOCKEVENTS
308312
select ARM_GIC
313+
select MIGHT_HAVE_PCI
309314
select PCI_DOMAINS if PCI
310315
help
311316
Support for Cavium Networks CNS3XXX platform.
@@ -335,7 +340,7 @@ config ARCH_EP93XX
335340
select CPU_ARM920T
336341
select ARM_AMBA
337342
select ARM_VIC
338-
select COMMON_CLKDEV
343+
select CLKDEV_LOOKUP
339344
select ARCH_REQUIRE_GPIOLIB
340345
select ARCH_HAS_HOLES_MEMORYMODEL
341346
select ARCH_USES_GETTIMEOFFSET
@@ -355,14 +360,14 @@ config ARCH_MXC
355360
bool "Freescale MXC/iMX-based"
356361
select GENERIC_CLOCKEVENTS
357362
select ARCH_REQUIRE_GPIOLIB
358-
select COMMON_CLKDEV
363+
select CLKDEV_LOOKUP
359364
help
360365
Support for Freescale MXC/iMX-based family of processors
361366

362367
config ARCH_STMP3XXX
363368
bool "Freescale STMP3xxx"
364369
select CPU_ARM926T
365-
select COMMON_CLKDEV
370+
select CLKDEV_LOOKUP
366371
select ARCH_REQUIRE_GPIOLIB
367372
select GENERIC_CLOCKEVENTS
368373
select USB_ARCH_HAS_EHCI
@@ -442,6 +447,7 @@ config ARCH_IXP4XX
442447
select GENERIC_GPIO
443448
select GENERIC_CLOCKEVENTS
444449
select HAVE_SCHED_CLOCK
450+
select MIGHT_HAVE_PCI
445451
select DMABOUNCE if PCI
446452
help
447453
Support for Intel's IXP4XX (XScale) family of processors.
@@ -481,7 +487,7 @@ config ARCH_LPC32XX
481487
select HAVE_IDE
482488
select ARM_AMBA
483489
select USB_ARCH_HAS_OHCI
484-
select COMMON_CLKDEV
490+
select CLKDEV_LOOKUP
485491
select GENERIC_TIME
486492
select GENERIC_CLOCKEVENTS
487493
help
@@ -515,7 +521,7 @@ config ARCH_MMP
515521
bool "Marvell PXA168/910/MMP2"
516522
depends on MMU
517523
select ARCH_REQUIRE_GPIOLIB
518-
select COMMON_CLKDEV
524+
select CLKDEV_LOOKUP
519525
select GENERIC_CLOCKEVENTS
520526
select HAVE_SCHED_CLOCK
521527
select TICK_ONESHOT
@@ -549,7 +555,7 @@ config ARCH_W90X900
549555
bool "Nuvoton W90X900 CPU"
550556
select CPU_ARM926T
551557
select ARCH_REQUIRE_GPIOLIB
552-
select COMMON_CLKDEV
558+
select CLKDEV_LOOKUP
553559
select GENERIC_CLOCKEVENTS
554560
help
555561
Support for Nuvoton (Winbond logic dept.) ARM9 processor,
@@ -563,19 +569,19 @@ config ARCH_W90X900
563569
config ARCH_NUC93X
564570
bool "Nuvoton NUC93X CPU"
565571
select CPU_ARM926T
566-
select COMMON_CLKDEV
572+
select CLKDEV_LOOKUP
567573
help
568574
Support for Nuvoton (Winbond logic dept.) NUC93X MCU,The NUC93X is a
569575
low-power and high performance MPEG-4/JPEG multimedia controller chip.
570576

571577
config ARCH_TEGRA
572578
bool "NVIDIA Tegra"
579+
select CLKDEV_LOOKUP
573580
select GENERIC_TIME
574581
select GENERIC_CLOCKEVENTS
575582
select GENERIC_GPIO
576583
select HAVE_CLK
577584
select HAVE_SCHED_CLOCK
578-
select COMMON_CLKDEV
579585
select ARCH_HAS_BARRIERS if CACHE_L2X0
580586
select ARCH_HAS_CPUFREQ
581587
help
@@ -585,7 +591,7 @@ config ARCH_TEGRA
585591
config ARCH_PNX4008
586592
bool "Philips Nexperia PNX4008 Mobile"
587593
select CPU_ARM926T
588-
select COMMON_CLKDEV
594+
select CLKDEV_LOOKUP
589595
select ARCH_USES_GETTIMEOFFSET
590596
help
591597
This enables support for Philips PNX4008 mobile platform.
@@ -595,7 +601,7 @@ config ARCH_PXA
595601
depends on MMU
596602
select ARCH_MTD_XIP
597603
select ARCH_HAS_CPUFREQ
598-
select COMMON_CLKDEV
604+
select CLKDEV_LOOKUP
599605
select ARCH_REQUIRE_GPIOLIB
600606
select GENERIC_CLOCKEVENTS
601607
select HAVE_SCHED_CLOCK
@@ -774,7 +780,7 @@ config ARCH_TCC_926
774780
bool "Telechips TCC ARM926-based systems"
775781
select CPU_ARM926T
776782
select HAVE_CLK
777-
select COMMON_CLKDEV
783+
select CLKDEV_LOOKUP
778784
select GENERIC_CLOCKEVENTS
779785
help
780786
Support for Telechips TCC ARM926-based systems.
@@ -799,7 +805,7 @@ config ARCH_U300
799805
select ARM_AMBA
800806
select ARM_VIC
801807
select GENERIC_CLOCKEVENTS
802-
select COMMON_CLKDEV
808+
select CLKDEV_LOOKUP
803809
select GENERIC_GPIO
804810
help
805811
Support for ST-Ericsson U300 series mobile platforms.
@@ -809,7 +815,7 @@ config ARCH_U8500
809815
select CPU_V7
810816
select ARM_AMBA
811817
select GENERIC_CLOCKEVENTS
812-
select COMMON_CLKDEV
818+
select CLKDEV_LOOKUP
813819
select ARCH_REQUIRE_GPIOLIB
814820
help
815821
Support for ST-Ericsson's Ux500 architecture
@@ -819,7 +825,7 @@ config ARCH_NOMADIK
819825
select ARM_AMBA
820826
select ARM_VIC
821827
select CPU_ARM926T
822-
select COMMON_CLKDEV
828+
select CLKDEV_LOOKUP
823829
select GENERIC_CLOCKEVENTS
824830
select ARCH_REQUIRE_GPIOLIB
825831
help
@@ -831,7 +837,7 @@ config ARCH_DAVINCI
831837
select ARCH_REQUIRE_GPIOLIB
832838
select ZONE_DMA
833839
select HAVE_IDE
834-
select COMMON_CLKDEV
840+
select CLKDEV_LOOKUP
835841
select GENERIC_ALLOCATOR
836842
select ARCH_HAS_HOLES_MEMORYMODEL
837843
help
@@ -852,7 +858,7 @@ config PLAT_SPEAR
852858
bool "ST SPEAr"
853859
select ARM_AMBA
854860
select ARCH_REQUIRE_GPIOLIB
855-
select COMMON_CLKDEV
861+
select CLKDEV_LOOKUP
856862
select GENERIC_CLOCKEVENTS
857863
select HAVE_CLK
858864
help
@@ -1034,6 +1040,11 @@ config CPU_HAS_PMU
10341040
default y
10351041
bool
10361042

1043+
config MULTI_IRQ_HANDLER
1044+
bool
1045+
help
1046+
Allow each machine to specify it's own IRQ handler at run time.
1047+
10371048
if !MMU
10381049
source "arch/arm/Kconfig-nommu"
10391050
endif
@@ -1181,7 +1192,7 @@ config ISA_DMA_API
11811192
bool
11821193

11831194
config PCI
1184-
bool "PCI support" if ARCH_INTEGRATOR_AP || ARCH_VERSATILE_PB || ARCH_IXP4XX || ARCH_KS8695 || MACH_ARMCORE || ARCH_CNS3XXX || SA1100_NANOENGINE
1195+
bool "PCI support" if MIGHT_HAVE_PCI
11851196
help
11861197
Find out whether you have a PCI motherboard. PCI is the name of a
11871198
bus system, i.e. the way the CPU talks to the other stuff inside
@@ -1253,7 +1264,7 @@ config SMP
12531264
config SMP_ON_UP
12541265
bool "Allow booting SMP kernel on uniprocessor systems (EXPERIMENTAL)"
12551266
depends on EXPERIMENTAL
1256-
depends on SMP && !XIP && !THUMB2_KERNEL
1267+
depends on SMP && !XIP
12571268
default y
12581269
help
12591270
SMP kernels contain instructions which fail on non-SMP processors.
@@ -1272,6 +1283,7 @@ config HAVE_ARM_SCU
12721283
config HAVE_ARM_TWD
12731284
bool
12741285
depends on SMP
1286+
select TICK_ONESHOT
12751287
help
12761288
This options enables support for the ARM timer and watchdog unit
12771289

@@ -1335,7 +1347,7 @@ config HZ
13351347
default 100
13361348

13371349
config THUMB2_KERNEL
1338-
bool "Compile the kernel in Thumb-2 mode"
1350+
bool "Compile the kernel in Thumb-2 mode (EXPERIMENTAL)"
13391351
depends on CPU_V7 && !CPU_V6 && EXPERIMENTAL
13401352
select AEABI
13411353
select ARM_ASM_UNIFIED
@@ -1549,6 +1561,7 @@ config SECCOMP
15491561

15501562
config CC_STACKPROTECTOR
15511563
bool "Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)"
1564+
depends on EXPERIMENTAL
15521565
help
15531566
This option turns on the -fstack-protector GCC feature. This
15541567
feature puts, at the beginning of functions, a canary value on
@@ -1745,7 +1758,7 @@ config CPU_FREQ_S3C
17451758
Internal configuration node for common cpufreq on Samsung SoC
17461759

17471760
config CPU_FREQ_S3C24XX
1748-
bool "CPUfreq driver for Samsung S3C24XX series CPUs"
1761+
bool "CPUfreq driver for Samsung S3C24XX series CPUs (EXPERIMENTAL)"
17491762
depends on ARCH_S3C2410 && CPU_FREQ && EXPERIMENTAL
17501763
select CPU_FREQ_S3C
17511764
help
@@ -1757,7 +1770,7 @@ config CPU_FREQ_S3C24XX
17571770
If in doubt, say N.
17581771

17591772
config CPU_FREQ_S3C24XX_PLL
1760-
bool "Support CPUfreq changing of PLL frequency"
1773+
bool "Support CPUfreq changing of PLL frequency (EXPERIMENTAL)"
17611774
depends on CPU_FREQ_S3C24XX && EXPERIMENTAL
17621775
help
17631776
Compile in support for changing the PLL frequency from the

‎arch/arm/Kconfig.debug‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ config FRAME_POINTER
3131
reported is severely limited.
3232

3333
config ARM_UNWIND
34-
bool "Enable stack unwinding support"
34+
bool "Enable stack unwinding support (EXPERIMENTAL)"
3535
depends on AEABI && EXPERIMENTAL
3636
default y
3737
help

‎arch/arm/common/Kconfig‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,3 @@ config SHARP_PARAM
3737

3838
config SHARP_SCOOP
3939
bool
40-
41-
config COMMON_CLKDEV
42-
bool
43-
select HAVE_CLK

0 commit comments

Comments
 (0)