Files
android_kernel_xiaomi_sm8450/arch/x86/kernel
Steven Rostedt 5b2bdbc845 x86: Init per-cpu shadow copy of CR4 on 32-bit CPUs too
Commit:

   1e02ce4ccc ("x86: Store a per-cpu shadow copy of CR4")

added a shadow CR4 such that reads and writes that do not
modify the CR4 execute much faster than always reading the
register itself.

The change modified cpu_init() in common.c, so that the
shadow CR4 gets initialized before anything uses it.

Unfortunately, there's two cpu_init()s in common.c. There's
one for 64-bit and one for 32-bit. The commit only added
the shadow init to the 64-bit path, but the 32-bit path
needs the init too.

Link: http://lkml.kernel.org/r/20150227125208.71c36402@gandalf.local.home Fixes: 1e02ce4ccc "x86: Store a per-cpu shadow copy of CR4"
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Andy Lutomirski <luto@amacapital.net>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/20150227145019.2bdd4354@gandalf.local.home
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-02-28 08:04:20 +01:00
..
2014-06-04 16:53:57 -07:00
2014-12-13 12:42:51 -08:00
2014-10-17 13:40:51 -07:00
2015-02-13 21:21:41 -08:00
2014-11-11 17:57:46 +01:00
2015-02-13 21:21:41 -08:00
2015-01-02 10:22:46 -08:00
2014-08-26 13:45:49 -04:00
2014-01-03 14:37:13 +00:00
2015-02-13 21:21:41 -08:00
2014-06-04 16:53:57 -07:00
2015-02-04 12:10:41 +01:00
2014-10-17 13:40:52 -07:00
2015-02-18 20:55:53 +01:00
2015-02-04 12:10:41 +01:00