process: add a hook for platform level knowledge of discard discarding
authorAlan Cox <alan@linux.intel.com>
Thu, 1 Oct 2015 18:29:26 +0000 (19:29 +0100)
committerAlan Cox <alan@linux.intel.com>
Thu, 1 Oct 2015 18:29:26 +0000 (19:29 +0100)
Kernel/process.c

index 0020d74..346227e 100644 (file)
@@ -636,6 +636,7 @@ void panic(char *deathcry)
 void exec_or_die(void)
 {
        kputs("Starting /init\n");
+       platform_discard();
        _execve();
        panic("no /init");      /* BIG Trouble if we Get Here!! */
 }