Merge tag 'v4.9.176' into khadas-vim3-4.9.y
authorNick <nick@khadas.com>
Tue, 21 May 2019 09:59:19 +0000 (17:59 +0800)
committerNick <nick@khadas.com>
Tue, 21 May 2019 09:59:19 +0000 (17:59 +0800)
This is the 4.9.176 stable release

 Conflicts:
kernel/cpu.c

1  2 
Documentation/kernel-parameters.txt
Makefile
arch/x86/kernel/process.c
arch/x86/kvm/vmx.c
include/linux/cpu.h
include/linux/sched.h
include/uapi/linux/prctl.h
kernel/cpu.c
kernel/sched/core.c
kernel/sched/sched.h

Simple merge
diff --cc Makefile
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc kernel/cpu.c
@@@ -2230,22 -2235,17 +2242,36 @@@ void __init boot_cpu_hotplug_init(void
        this_cpu_write(cpuhp_state.state, CPUHP_ONLINE);
  }
  
 +static ATOMIC_NOTIFIER_HEAD(idle_notifier);
 +
 +void idle_notifier_register(struct notifier_block *n)
 +{
 +      atomic_notifier_chain_register(&idle_notifier, n);
 +}
 +EXPORT_SYMBOL_GPL(idle_notifier_register);
 +
 +void idle_notifier_unregister(struct notifier_block *n)
 +{
 +      atomic_notifier_chain_unregister(&idle_notifier, n);
 +}
 +EXPORT_SYMBOL_GPL(idle_notifier_unregister);
 +
 +void idle_notifier_call_chain(unsigned long val)
 +{
 +      atomic_notifier_call_chain(&idle_notifier, val, NULL);
 +}
 +EXPORT_SYMBOL_GPL(idle_notifier_call_chain);
+ enum cpu_mitigations cpu_mitigations __ro_after_init = CPU_MITIGATIONS_AUTO;
+ static int __init mitigations_parse_cmdline(char *arg)
+ {
+       if (!strcmp(arg, "off"))
+               cpu_mitigations = CPU_MITIGATIONS_OFF;
+       else if (!strcmp(arg, "auto"))
+               cpu_mitigations = CPU_MITIGATIONS_AUTO;
+       else if (!strcmp(arg, "auto,nosmt"))
+               cpu_mitigations = CPU_MITIGATIONS_AUTO_NOSMT;
+       return 0;
+ }
+ early_param("mitigations", mitigations_parse_cmdline);
Simple merge
Simple merge