diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/kvm_host.h | 2 | ||||
| -rw-r--r-- | include/linux/sched.h | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 970c68197c69..ec4e3bd83d47 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
| @@ -586,7 +586,7 @@ void mark_page_dirty(struct kvm *kvm, gfn_t gfn); | |||
| 586 | 586 | ||
| 587 | void kvm_vcpu_block(struct kvm_vcpu *vcpu); | 587 | void kvm_vcpu_block(struct kvm_vcpu *vcpu); |
| 588 | void kvm_vcpu_kick(struct kvm_vcpu *vcpu); | 588 | void kvm_vcpu_kick(struct kvm_vcpu *vcpu); |
| 589 | bool kvm_vcpu_yield_to(struct kvm_vcpu *target); | 589 | int kvm_vcpu_yield_to(struct kvm_vcpu *target); |
| 590 | void kvm_vcpu_on_spin(struct kvm_vcpu *vcpu); | 590 | void kvm_vcpu_on_spin(struct kvm_vcpu *vcpu); |
| 591 | void kvm_load_guest_fpu(struct kvm_vcpu *vcpu); | 591 | void kvm_load_guest_fpu(struct kvm_vcpu *vcpu); |
| 592 | void kvm_put_guest_fpu(struct kvm_vcpu *vcpu); | 592 | void kvm_put_guest_fpu(struct kvm_vcpu *vcpu); |
diff --git a/include/linux/sched.h b/include/linux/sched.h index b8a98427f964..306f4f0c987a 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -847,10 +847,10 @@ enum cpu_idle_type { | |||
| 847 | }; | 847 | }; |
| 848 | 848 | ||
| 849 | /* | 849 | /* |
| 850 | * Increase resolution of cpu_power calculations | 850 | * Increase resolution of cpu_capacity calculations |
| 851 | */ | 851 | */ |
| 852 | #define SCHED_POWER_SHIFT 10 | 852 | #define SCHED_CAPACITY_SHIFT 10 |
| 853 | #define SCHED_POWER_SCALE (1L << SCHED_POWER_SHIFT) | 853 | #define SCHED_CAPACITY_SCALE (1L << SCHED_CAPACITY_SHIFT) |
| 854 | 854 | ||
| 855 | /* | 855 | /* |
| 856 | * sched-domains (multiprocessor balancing) declarations: | 856 | * sched-domains (multiprocessor balancing) declarations: |
| @@ -862,7 +862,7 @@ enum cpu_idle_type { | |||
| 862 | #define SD_BALANCE_FORK 0x0008 /* Balance on fork, clone */ | 862 | #define SD_BALANCE_FORK 0x0008 /* Balance on fork, clone */ |
| 863 | #define SD_BALANCE_WAKE 0x0010 /* Balance on wakeup */ | 863 | #define SD_BALANCE_WAKE 0x0010 /* Balance on wakeup */ |
| 864 | #define SD_WAKE_AFFINE 0x0020 /* Wake task to waking CPU */ | 864 | #define SD_WAKE_AFFINE 0x0020 /* Wake task to waking CPU */ |
| 865 | #define SD_SHARE_CPUPOWER 0x0080 /* Domain members share cpu power */ | 865 | #define SD_SHARE_CPUCAPACITY 0x0080 /* Domain members share cpu power */ |
| 866 | #define SD_SHARE_POWERDOMAIN 0x0100 /* Domain members share power domain */ | 866 | #define SD_SHARE_POWERDOMAIN 0x0100 /* Domain members share power domain */ |
| 867 | #define SD_SHARE_PKG_RESOURCES 0x0200 /* Domain members share cpu pkg resources */ | 867 | #define SD_SHARE_PKG_RESOURCES 0x0200 /* Domain members share cpu pkg resources */ |
| 868 | #define SD_SERIALIZE 0x0400 /* Only a single load balancing instance */ | 868 | #define SD_SERIALIZE 0x0400 /* Only a single load balancing instance */ |
| @@ -874,7 +874,7 @@ enum cpu_idle_type { | |||
| 874 | #ifdef CONFIG_SCHED_SMT | 874 | #ifdef CONFIG_SCHED_SMT |
| 875 | static inline const int cpu_smt_flags(void) | 875 | static inline const int cpu_smt_flags(void) |
| 876 | { | 876 | { |
| 877 | return SD_SHARE_CPUPOWER | SD_SHARE_PKG_RESOURCES; | 877 | return SD_SHARE_CPUCAPACITY | SD_SHARE_PKG_RESOURCES; |
| 878 | } | 878 | } |
| 879 | #endif | 879 | #endif |
| 880 | 880 | ||
| @@ -1006,7 +1006,7 @@ typedef const int (*sched_domain_flags_f)(void); | |||
| 1006 | struct sd_data { | 1006 | struct sd_data { |
| 1007 | struct sched_domain **__percpu sd; | 1007 | struct sched_domain **__percpu sd; |
| 1008 | struct sched_group **__percpu sg; | 1008 | struct sched_group **__percpu sg; |
| 1009 | struct sched_group_power **__percpu sgp; | 1009 | struct sched_group_capacity **__percpu sgc; |
| 1010 | }; | 1010 | }; |
| 1011 | 1011 | ||
| 1012 | struct sched_domain_topology_level { | 1012 | struct sched_domain_topology_level { |
| @@ -2173,7 +2173,7 @@ static inline void sched_autogroup_fork(struct signal_struct *sig) { } | |||
| 2173 | static inline void sched_autogroup_exit(struct signal_struct *sig) { } | 2173 | static inline void sched_autogroup_exit(struct signal_struct *sig) { } |
| 2174 | #endif | 2174 | #endif |
| 2175 | 2175 | ||
| 2176 | extern bool yield_to(struct task_struct *p, bool preempt); | 2176 | extern int yield_to(struct task_struct *p, bool preempt); |
| 2177 | extern void set_user_nice(struct task_struct *p, long nice); | 2177 | extern void set_user_nice(struct task_struct *p, long nice); |
| 2178 | extern int task_prio(const struct task_struct *p); | 2178 | extern int task_prio(const struct task_struct *p); |
| 2179 | /** | 2179 | /** |
