From 0b94092f4d96f0c48f24272641af171fc8065515 Mon Sep 17 00:00:00 2001
From: John Ogness <john.ogness@linutronix.de>
Date: Thu, 28 Mar 2019 11:06:00 +0106
Subject: linux-mm-basics: increase stack size

The example shows a prefaulted stack size of 8KB, which is pretty
small. Set it up to 64KB, which is a bit mor realistic.

Also, remove the pointless "return" at the end of that function.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
---
 kernel-devel/linux-mm-basics/pres_linux-mm-basics_en.tex | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'kernel-devel/linux-mm-basics/pres_linux-mm-basics_en.tex')

diff --git a/kernel-devel/linux-mm-basics/pres_linux-mm-basics_en.tex b/kernel-devel/linux-mm-basics/pres_linux-mm-basics_en.tex
index 859e7af..89abef2 100644
--- a/kernel-devel/linux-mm-basics/pres_linux-mm-basics_en.tex
+++ b/kernel-devel/linux-mm-basics/pres_linux-mm-basics_en.tex
@@ -186,13 +186,12 @@ if(mlockall(MCL_CURRENT|MCL_FUTURE) == -1) {
 \begin{frame}[fragile]
 \frametitle{Stack prefaulting}
 \begin{verbatim}
-#define MAX_SAFE_STACK (8*1024)
+#define MAX_SAFE_STACK (64*1024)
 
 void stack_prefault(void) {
         unsigned char dummy[MAX_SAFE_STACK];
 
         memset(&dummy, 0, MAX_SAFE_STACK);
-        return;
 }
 \end{verbatim}
 \end{frame}
-- 
cgit v1.2.3

