HFI1: make kmalloc caches per-CPU and pre-allocate at boot time
This commit is contained in:
@ -484,14 +484,12 @@ long do_syscall(struct syscall_request *req, int cpu, int pid)
|
||||
if ((cpu_local_var(current)->proc->mcexec_flags & MCEXEC_HFI1) &&
|
||||
res.private_data &&
|
||||
!strncmp((const char *)req->args[0], "/dev/hfi", 8)) {
|
||||
extern void hfi1_txreq_prealloc(void);
|
||||
|
||||
thread->proc->fd_priv_table[rc] = res.private_data;
|
||||
dkprintf("%s: PID: %d, open fd: %d, filename: "
|
||||
"%s, private_data: 0x%lx\n",
|
||||
__FUNCTION__, thread->proc->pid,
|
||||
rc, req->args[0], res.private_data);
|
||||
hfi1_txreq_prealloc();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user