diff options
| author | Len Brown <len.brown@intel.com> | 2009-09-19 00:11:26 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2009-09-19 00:11:26 -0400 |
| commit | c602c65b2f81d14456771d1e3f15d1381f4b7efa (patch) | |
| tree | f1f833c8dd6c1519eeb101be32f7fe54a9605af5 /init | |
| parent | 3834f47291df475be3f0f0fb7ccaa098967cc054 (diff) | |
| parent | 78f28b7c555359c67c2a0d23f7436e915329421e (diff) | |
Merge branch 'linus' into sfi-release
Conflicts:
arch/x86/kernel/setup.c
drivers/acpi/power.c
init/main.c
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'init')
| -rw-r--r-- | init/Kconfig | 46 | ||||
| -rw-r--r-- | init/do_mounts.c | 2 | ||||
| -rw-r--r-- | init/main.c | 30 |
3 files changed, 20 insertions, 58 deletions
diff --git a/init/Kconfig b/init/Kconfig index 3f7e60995c80..8e8b76d8a272 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
| @@ -316,38 +316,28 @@ choice | |||
| 316 | prompt "RCU Implementation" | 316 | prompt "RCU Implementation" |
| 317 | default TREE_RCU | 317 | default TREE_RCU |
| 318 | 318 | ||
| 319 | config CLASSIC_RCU | ||
| 320 | bool "Classic RCU" | ||
| 321 | help | ||
| 322 | This option selects the classic RCU implementation that is | ||
| 323 | designed for best read-side performance on non-realtime | ||
| 324 | systems. | ||
| 325 | |||
| 326 | Select this option if you are unsure. | ||
| 327 | |||
| 328 | config TREE_RCU | 319 | config TREE_RCU |
| 329 | bool "Tree-based hierarchical RCU" | 320 | bool "Tree-based hierarchical RCU" |
| 330 | help | 321 | help |
| 331 | This option selects the RCU implementation that is | 322 | This option selects the RCU implementation that is |
| 332 | designed for very large SMP system with hundreds or | 323 | designed for very large SMP system with hundreds or |
| 333 | thousands of CPUs. | 324 | thousands of CPUs. It also scales down nicely to |
| 325 | smaller systems. | ||
| 334 | 326 | ||
| 335 | config PREEMPT_RCU | 327 | config TREE_PREEMPT_RCU |
| 336 | bool "Preemptible RCU" | 328 | bool "Preemptable tree-based hierarchical RCU" |
| 337 | depends on PREEMPT | 329 | depends on PREEMPT |
| 338 | help | 330 | help |
| 339 | This option reduces the latency of the kernel by making certain | 331 | This option selects the RCU implementation that is |
| 340 | RCU sections preemptible. Normally RCU code is non-preemptible, if | 332 | designed for very large SMP systems with hundreds or |
| 341 | this option is selected then read-only RCU sections become | 333 | thousands of CPUs, but for which real-time response |
| 342 | preemptible. This helps latency, but may expose bugs due to | 334 | is also required. |
| 343 | now-naive assumptions about each RCU read-side critical section | ||
| 344 | remaining on a given CPU through its execution. | ||
| 345 | 335 | ||
| 346 | endchoice | 336 | endchoice |
| 347 | 337 | ||
| 348 | config RCU_TRACE | 338 | config RCU_TRACE |
| 349 | bool "Enable tracing for RCU" | 339 | bool "Enable tracing for RCU" |
| 350 | depends on TREE_RCU || PREEMPT_RCU | 340 | depends on TREE_RCU || TREE_PREEMPT_RCU |
| 351 | help | 341 | help |
| 352 | This option provides tracing in RCU which presents stats | 342 | This option provides tracing in RCU which presents stats |
| 353 | in debugfs for debugging RCU implementation. | 343 | in debugfs for debugging RCU implementation. |
| @@ -359,7 +349,7 @@ config RCU_FANOUT | |||
| 359 | int "Tree-based hierarchical RCU fanout value" | 349 | int "Tree-based hierarchical RCU fanout value" |
| 360 | range 2 64 if 64BIT | 350 | range 2 64 if 64BIT |
| 361 | range 2 32 if !64BIT | 351 | range 2 32 if !64BIT |
| 362 | depends on TREE_RCU | 352 | depends on TREE_RCU || TREE_PREEMPT_RCU |
| 363 | default 64 if 64BIT | 353 | default 64 if 64BIT |
| 364 | default 32 if !64BIT | 354 | default 32 if !64BIT |
| 365 | help | 355 | help |
| @@ -374,7 +364,7 @@ config RCU_FANOUT | |||
| 374 | 364 | ||
| 375 | config RCU_FANOUT_EXACT | 365 | config RCU_FANOUT_EXACT |
| 376 | bool "Disable tree-based hierarchical RCU auto-balancing" | 366 | bool "Disable tree-based hierarchical RCU auto-balancing" |
| 377 | depends on TREE_RCU | 367 | depends on TREE_RCU || TREE_PREEMPT_RCU |
| 378 | default n | 368 | default n |
| 379 | help | 369 | help |
| 380 | This option forces use of the exact RCU_FANOUT value specified, | 370 | This option forces use of the exact RCU_FANOUT value specified, |
| @@ -387,18 +377,12 @@ config RCU_FANOUT_EXACT | |||
| 387 | Say N if unsure. | 377 | Say N if unsure. |
| 388 | 378 | ||
| 389 | config TREE_RCU_TRACE | 379 | config TREE_RCU_TRACE |
| 390 | def_bool RCU_TRACE && TREE_RCU | 380 | def_bool RCU_TRACE && ( TREE_RCU || TREE_PREEMPT_RCU ) |
| 391 | select DEBUG_FS | ||
| 392 | help | ||
| 393 | This option provides tracing for the TREE_RCU implementation, | ||
| 394 | permitting Makefile to trivially select kernel/rcutree_trace.c. | ||
| 395 | |||
| 396 | config PREEMPT_RCU_TRACE | ||
| 397 | def_bool RCU_TRACE && PREEMPT_RCU | ||
| 398 | select DEBUG_FS | 381 | select DEBUG_FS |
| 399 | help | 382 | help |
| 400 | This option provides tracing for the PREEMPT_RCU implementation, | 383 | This option provides tracing for the TREE_RCU and |
| 401 | permitting Makefile to trivially select kernel/rcupreempt_trace.c. | 384 | TREE_PREEMPT_RCU implementations, permitting Makefile to |
| 385 | trivially select kernel/rcutree_trace.c. | ||
| 402 | 386 | ||
| 403 | endmenu # "RCU Subsystem" | 387 | endmenu # "RCU Subsystem" |
| 404 | 388 | ||
diff --git a/init/do_mounts.c b/init/do_mounts.c index 093f65915501..bb008d064c1a 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c | |||
| @@ -415,7 +415,7 @@ void __init prepare_namespace(void) | |||
| 415 | 415 | ||
| 416 | mount_root(); | 416 | mount_root(); |
| 417 | out: | 417 | out: |
| 418 | devtmpfs_mount("dev"); | ||
| 418 | sys_mount(".", "/", NULL, MS_MOVE, NULL); | 419 | sys_mount(".", "/", NULL, MS_MOVE, NULL); |
| 419 | sys_chroot("."); | 420 | sys_chroot("."); |
| 420 | } | 421 | } |
| 421 | |||
diff --git a/init/main.c b/init/main.c index 9f110fbf0c45..a2086913a17b 100644 --- a/init/main.c +++ b/init/main.c | |||
| @@ -69,6 +69,7 @@ | |||
| 69 | #include <linux/kmemcheck.h> | 69 | #include <linux/kmemcheck.h> |
| 70 | #include <linux/kmemtrace.h> | 70 | #include <linux/kmemtrace.h> |
| 71 | #include <linux/sfi.h> | 71 | #include <linux/sfi.h> |
| 72 | #include <linux/shmem_fs.h> | ||
| 72 | #include <trace/boot.h> | 73 | #include <trace/boot.h> |
| 73 | 74 | ||
| 74 | #include <asm/io.h> | 75 | #include <asm/io.h> |
| @@ -354,7 +355,6 @@ static void __init smp_init(void) | |||
| 354 | #define smp_init() do { } while (0) | 355 | #define smp_init() do { } while (0) |
| 355 | #endif | 356 | #endif |
| 356 | 357 | ||
| 357 | static inline void setup_per_cpu_areas(void) { } | ||
| 358 | static inline void setup_nr_cpu_ids(void) { } | 358 | static inline void setup_nr_cpu_ids(void) { } |
| 359 | static inline void smp_prepare_cpus(unsigned int maxcpus) { } | 359 | static inline void smp_prepare_cpus(unsigned int maxcpus) { } |
| 360 | 360 | ||
| @@ -375,29 +375,6 @@ static void __init setup_nr_cpu_ids(void) | |||
| 375 | nr_cpu_ids = find_last_bit(cpumask_bits(cpu_possible_mask),NR_CPUS) + 1; | 375 | nr_cpu_ids = find_last_bit(cpumask_bits(cpu_possible_mask),NR_CPUS) + 1; |
| 376 | } | 376 | } |
| 377 | 377 | ||
| 378 | #ifndef CONFIG_HAVE_SETUP_PER_CPU_AREA | ||
| 379 | unsigned long __per_cpu_offset[NR_CPUS] __read_mostly; | ||
| 380 | |||
| 381 | EXPORT_SYMBOL(__per_cpu_offset); | ||
| 382 | |||
| 383 | static void __init setup_per_cpu_areas(void) | ||
| 384 | { | ||
| 385 | unsigned long size, i; | ||
| 386 | char *ptr; | ||
| 387 | unsigned long nr_possible_cpus = num_possible_cpus(); | ||
| 388 | |||
| 389 | /* Copy section for each CPU (we discard the original) */ | ||
| 390 | size = ALIGN(PERCPU_ENOUGH_ROOM, PAGE_SIZE); | ||
| 391 | ptr = alloc_bootmem_pages(size * nr_possible_cpus); | ||
| 392 | |||
| 393 | for_each_possible_cpu(i) { | ||
| 394 | __per_cpu_offset[i] = ptr - __per_cpu_start; | ||
| 395 | memcpy(ptr, __per_cpu_start, __per_cpu_end - __per_cpu_start); | ||
| 396 | ptr += size; | ||
| 397 | } | ||
| 398 | } | ||
| 399 | #endif /* CONFIG_HAVE_SETUP_PER_CPU_AREA */ | ||
| 400 | |||
| 401 | /* Called by boot processor to activate the rest. */ | 378 | /* Called by boot processor to activate the rest. */ |
| 402 | static void __init smp_init(void) | 379 | static void __init smp_init(void) |
| 403 | { | 380 | { |
| @@ -452,6 +429,7 @@ static noinline void __init_refok rest_init(void) | |||
| 452 | { | 429 | { |
| 453 | int pid; | 430 | int pid; |
| 454 | 431 | ||
| 432 | rcu_scheduler_starting(); | ||
| 455 | kernel_thread(kernel_init, NULL, CLONE_FS | CLONE_SIGHAND); | 433 | kernel_thread(kernel_init, NULL, CLONE_FS | CLONE_SIGHAND); |
| 456 | numa_default_policy(); | 434 | numa_default_policy(); |
| 457 | pid = kernel_thread(kthreadd, NULL, CLONE_FS | CLONE_FILES); | 435 | pid = kernel_thread(kthreadd, NULL, CLONE_FS | CLONE_FILES); |
| @@ -463,7 +441,6 @@ static noinline void __init_refok rest_init(void) | |||
| 463 | * at least once to get things moving: | 441 | * at least once to get things moving: |
| 464 | */ | 442 | */ |
| 465 | init_idle_bootup_task(current); | 443 | init_idle_bootup_task(current); |
| 466 | rcu_scheduler_starting(); | ||
| 467 | preempt_enable_no_resched(); | 444 | preempt_enable_no_resched(); |
| 468 | schedule(); | 445 | schedule(); |
| 469 | preempt_disable(); | 446 | preempt_disable(); |
| @@ -632,7 +609,6 @@ asmlinkage void __init start_kernel(void) | |||
| 632 | softirq_init(); | 609 | softirq_init(); |
| 633 | timekeeping_init(); | 610 | timekeeping_init(); |
| 634 | time_init(); | 611 | time_init(); |
| 635 | sched_clock_init(); | ||
| 636 | profile_init(); | 612 | profile_init(); |
| 637 | if (!irqs_disabled()) | 613 | if (!irqs_disabled()) |
| 638 | printk(KERN_CRIT "start_kernel(): bug: interrupts were " | 614 | printk(KERN_CRIT "start_kernel(): bug: interrupts were " |
| @@ -683,6 +659,7 @@ asmlinkage void __init start_kernel(void) | |||
| 683 | numa_policy_init(); | 659 | numa_policy_init(); |
| 684 | if (late_time_init) | 660 | if (late_time_init) |
| 685 | late_time_init(); | 661 | late_time_init(); |
| 662 | sched_clock_init(); | ||
| 686 | calibrate_delay(); | 663 | calibrate_delay(); |
| 687 | pidmap_init(); | 664 | pidmap_init(); |
| 688 | anon_vma_init(); | 665 | anon_vma_init(); |
| @@ -811,6 +788,7 @@ static void __init do_basic_setup(void) | |||
| 811 | init_workqueues(); | 788 | init_workqueues(); |
| 812 | cpuset_init_smp(); | 789 | cpuset_init_smp(); |
| 813 | usermodehelper_init(); | 790 | usermodehelper_init(); |
| 791 | init_tmpfs(); | ||
| 814 | driver_init(); | 792 | driver_init(); |
| 815 | init_irq_proc(); | 793 | init_irq_proc(); |
| 816 | do_ctors(); | 794 | do_ctors(); |
