prctl: Add support for PR_SET_THP_DISABLE and PR_GET_THP_DISABLE

Change-Id: I04c5568a9eb78bcac632b734f34bba49cf602c4d
Refs: #1181
This commit is contained in:
Ken Sato
2018-12-12 15:41:32 +09:00
committed by Masamichi Takagi
parent eb184419ea
commit dfd23c3ebe
24 changed files with 773 additions and 1 deletions

View File

@@ -114,6 +114,7 @@ init_process(struct process *proc, struct process *parent)
proc->fsgid = parent->fsgid;
proc->mpol_flags = parent->mpol_flags;
proc->mpol_threshold = parent->mpol_threshold;
proc->thp_disable = parent->thp_disable;
memcpy(proc->rlimit, parent->rlimit,
sizeof(struct rlimit) * MCK_RLIM_MAX);
memcpy(&proc->cpu_set, &parent->cpu_set,