Drivers: hv: vmbus: Define an API to retrieve virtual processor index

As part of cleaning up architecture specific code, define an API
to retrieve the virtual procesor index.

Signed-off-by: K. Y. Srinivasan <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
K. Y. Srinivasan 2017-01-19 11:51:57 -07:00 • committed by Greg Kroah-Hartman
commit 7297ff0ca9
2 changed files with 3 additions and 1 deletions

View file

@ -306,7 +306,7 @@ int hv_synic_init(unsigned int cpu)
* of cpuid and Linux' notion of cpuid.
* This array will be indexed using Linux cpuid.
*/
rdmsrl(HV_X64_MSR_VP_INDEX, vp_index);
hv_get_vp_index(vp_index);
hv_context.vp_index[cpu] = (u32)vp_index;
/*