Commit 0aef0e3a authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka

cobalt/kevents: dovetail: drop call to obsolete force_commit_memory()

A process is now marked for COW-breaking on fork() upon the first call
to dovetail_init_altsched(), and must ensure its memory is locked via
a call to mlockall(MCL_CURRENT|MCL_FUTURE) as usual.

As a result, force_commit_memory() became pointless and was removed
from the Dovetail interface.
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 4c0a897e
......@@ -516,7 +516,8 @@ void handle_inband_event(enum inband_event_type event, void *data)
}
#ifdef CONFIG_MMU
static inline int disable_ondemand_memory(void)
int pipeline_prepare_current(void)
{
struct task_struct *p = current;
kernel_siginfo_t si;
......@@ -527,15 +528,9 @@ static inline int disable_ondemand_memory(void)
si.si_code = SI_QUEUE;
si.si_int = SIGDEBUG_NOMLOCK | sigdebug_marker;
send_sig_info(SIGDEBUG, &si, p);
return 0;
}
return force_commit_memory();
}
int pipeline_prepare_current(void)
{
return disable_ondemand_memory();
return 0;
}
static inline int get_mayday_prot(void)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment