diff options
| author | K. Y. Srinivasan <kys@microsoft.com> | 2017-01-19 13:51:57 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-20 08:52:48 -0500 |
| commit | 7297ff0ca9db7e2d830841035b95d8b94b529142 (patch) | |
| tree | da73c22e337d06e906c74374a9c63f7b987adb29 /drivers/hv | |
| parent | 06d1d98a839f196e94cb726008fb2118e430f356 (diff) | |
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 <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv')
| -rw-r--r-- | drivers/hv/hv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index 7cb036d4b243..945719026223 100644 --- a/drivers/hv/hv.c +++ b/drivers/hv/hv.c | |||
| @@ -306,7 +306,7 @@ int hv_synic_init(unsigned int cpu) | |||
| 306 | * of cpuid and Linux' notion of cpuid. | 306 | * of cpuid and Linux' notion of cpuid. |
| 307 | * This array will be indexed using Linux cpuid. | 307 | * This array will be indexed using Linux cpuid. |
| 308 | */ | 308 | */ |
| 309 | rdmsrl(HV_X64_MSR_VP_INDEX, vp_index); | 309 | hv_get_vp_index(vp_index); |
| 310 | hv_context.vp_index[cpu] = (u32)vp_index; | 310 | hv_context.vp_index[cpu] = (u32)vp_index; |
| 311 | 311 | ||
| 312 | /* | 312 | /* |
