History

Merge branch 'perf/urgent' into perf/core, to pick up fixes

Ingo Molnar committed 6 years ago

Commit c494cd62 parents 8cacac6 c4b7547195 files · +3382 −4088Browse files

Showing the changes to include/linux (5 of 195 files). Show all

Unified · Split

5 files
  1. include/linux/can/core.h +1 −0
  2. include/linux/cpu.h +7 −23
  3. include/linux/intel-iommu.h +4 −2
  4. include/linux/kvm_host.h +7 −0
  5. include/linux/memory.h +1 −0
include/linux/can/core.h+1−0
@@ -65,5 +65,6 @@ extern void can_rx_unregister(struct net *net, struct net_device *dev, · 64 unmodified lines
6565 void *data);
6666
6767 extern int can_send(struct sk_buff *skb, int loop);
68+void can_sock_destruct(struct sock *sk);
6869
6970 #endif /* !_CAN_CORE_H */
include/linux/cpu.h+7−23
@@ -59,6 +59,11 @@ extern ssize_t cpu_show_l1tf(struct device *dev, · 58 unmodified lines
5959 struct device_attribute *attr, char *buf);
6060 extern ssize_t cpu_show_mds(struct device *dev,
6161 struct device_attribute *attr, char *buf);
62+extern ssize_t cpu_show_tsx_async_abort(struct device *dev,
63+ struct device_attribute *attr,
64+ char *buf);
65+extern ssize_t cpu_show_itlb_multihit(struct device *dev,
66+ struct device_attribute *attr, char *buf);
6267
6368 extern __printf(4, 5)
6469 struct device *cpu_device_create(struct device *parent, void *drvdata,
@@ -213,28 +218,7 @@ static inline int cpuhp_smt_enable(void) { return 0; } · 148 unmodified lines
213218 static inline int cpuhp_smt_disable(enum cpuhp_smt_control ctrlval) { return 0; }
214219 #endif
215220
216−/*
217− * These are used for a global "mitigations=" cmdline option for toggling
218− * optional CPU mitigations.
219− */
220−enum cpu_mitigations {
221− CPU_MITIGATIONS_OFF,
222− CPU_MITIGATIONS_AUTO,
223− CPU_MITIGATIONS_AUTO_NOSMT,
224−};
225−
226−extern enum cpu_mitigations cpu_mitigations;
227−
228−/* mitigations=off */
229−static inline bool cpu_mitigations_off(void)
230−{
231− return cpu_mitigations == CPU_MITIGATIONS_OFF;
232−}
233−
234−/* mitigations=auto,nosmt */
235−static inline bool cpu_mitigations_auto_nosmt(void)
236−{
237− return cpu_mitigations == CPU_MITIGATIONS_AUTO_NOSMT;
238−}
221+extern bool cpu_mitigations_off(void);
222+extern bool cpu_mitigations_auto_nosmt(void);
239223
240224 #endif /* _LINUX_CPU_H_ */
include/linux/intel-iommu.h+4−2
@@ -336,7 +336,8 @@ enum { · 335 unmodified lines
336336 #define QI_DEV_IOTLB_SID(sid) ((u64)((sid) & 0xffff) << 32)
337337 #define QI_DEV_IOTLB_QDEP(qdep) (((qdep) & 0x1f) << 16)
338338 #define QI_DEV_IOTLB_ADDR(addr) ((u64)(addr) & VTD_PAGE_MASK)
339−#define QI_DEV_IOTLB_PFSID(pfsid) (((u64)(pfsid & 0xf) << 12) | ((u64)(pfsid & 0xfff) << 52))
339+#define QI_DEV_IOTLB_PFSID(pfsid) (((u64)(pfsid & 0xf) << 12) | \
340+ ((u64)((pfsid >> 4) & 0xfff) << 52))
340341 #define QI_DEV_IOTLB_SIZE 1
341342 #define QI_DEV_IOTLB_MAX_INVS 32
342343
@@ -360,7 +361,8 @@ enum { · 17 unmodified lines
360361 #define QI_DEV_EIOTLB_PASID(p) (((u64)p) << 32)
361362 #define QI_DEV_EIOTLB_SID(sid) ((u64)((sid) & 0xffff) << 16)
362363 #define QI_DEV_EIOTLB_QDEP(qd) ((u64)((qd) & 0x1f) << 4)
363−#define QI_DEV_EIOTLB_PFSID(pfsid) (((u64)(pfsid & 0xf) << 12) | ((u64)(pfsid & 0xfff) << 52))
364+#define QI_DEV_EIOTLB_PFSID(pfsid) (((u64)(pfsid & 0xf) << 12) | \
365+ ((u64)((pfsid >> 4) & 0xfff) << 52))
364366 #define QI_DEV_EIOTLB_MAX_INVS 32
365367
366368 /* Page group response descriptor QW0 */
include/linux/kvm_host.h+7−0
@@ -966,6 +966,7 @@ int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu); · 965 unmodified lines
966966 void kvm_vcpu_kick(struct kvm_vcpu *vcpu);
967967
968968 bool kvm_is_reserved_pfn(kvm_pfn_t pfn);
969+bool kvm_is_zone_device_pfn(kvm_pfn_t pfn);
969970
970971 struct kvm_irq_ack_notifier {
971972 struct hlist_node link;
@@ -1382,4 +1383,10 @@ static inline int kvm_arch_vcpu_run_pid_change(struct kvm_vcpu *vcpu) · 410 unmodified lines
13821383 }
13831384 #endif /* CONFIG_HAVE_KVM_VCPU_RUN_PID_CHANGE */
13841385
1386+typedef int (*kvm_vm_thread_fn_t)(struct kvm *kvm, uintptr_t data);
1387+
1388+int kvm_vm_create_worker_thread(struct kvm *kvm, kvm_vm_thread_fn_t thread_fn,
1389+ uintptr_t data, const char *name,
1390+ struct task_struct **thread_ptr);
1391+
13851392 #endif
include/linux/memory.h+1−0
@@ -119,6 +119,7 @@ extern struct memory_block *find_memory_block(struct mem_section *); · 118 unmodified lines
119119 typedef int (*walk_memory_blocks_func_t)(struct memory_block *, void *);
120120 extern int walk_memory_blocks(unsigned long start, unsigned long size,
121121 void *arg, walk_memory_blocks_func_t func);
122+extern int for_each_memory_block(void *arg, walk_memory_blocks_func_t func);
122123 #define CONFIG_MEM_BLOCK_SIZE (PAGES_PER_SECTION<<PAGE_SHIFT)
123124 #endif /* CONFIG_MEMORY_HOTPLUG_SPARSE */
124125

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t