x86: reduce redundancy in tsc_[gs]et_info()
authorJan Beulich <jbeulich@suse.com>
Wed, 7 May 2014 14:36:11 +0000 (16:36 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 May 2014 14:36:11 +0000 (16:36 +0200)
commit15ebf4fc2ee0bd43c8111dd58394f904be369f7f
tree7494ee78ae8478a3d23c2c2871b04ac9a292e84a
parent6af4342276458be5ad8abc86dbf7e9ce680dad5e
x86: reduce redundancy in tsc_[gs]et_info()

- some of the case statements are effectively or mostly special cases
  of others, so there's no good reason not to share the code
- in the "get" function, a variable can be made case-wide instead of
  having multiple instance of it (and those even with a pointless
  initializer)
- minor formatting adjustments

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/time.c