[Patch v7 07/18] x86/speculation: Reorganize speculation control MSRs update

2018-11-20 Thread Tim Chen
The logic to detect whether there's a change in the previous and next task's flag relevant to update speculation control MSRs are spread out across multiple functions. Consolidate all checks needed for updating speculation control MSRs to __speculation_ctrl_update(). This makes it easy to pick

[Patch v7 07/18] x86/speculation: Reorganize speculation control MSRs update

2018-11-20 Thread Tim Chen
The logic to detect whether there's a change in the previous and next task's flag relevant to update speculation control MSRs are spread out across multiple functions. Consolidate all checks needed for updating speculation control MSRs to __speculation_ctrl_update(). This makes it easy to pick