From 5a23ca37b13424efbe0040446e0f6bfea92e7bab Mon Sep 17 00:00:00 2001
From: Gregory Nutt <gnutt@nuttx.org>
Date: Fri, 17 Aug 2018 14:23:38 -0600
Subject: [PATCH] Cosmetic update to comments.

---
 sched/task/task_spawn.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sched/task/task_spawn.c b/sched/task/task_spawn.c
index 4e6120a63a..8f2ee750ec 100644
--- a/sched/task/task_spawn.c
+++ b/sched/task/task_spawn.c
@@ -390,13 +390,15 @@ int task_spawn(FAR pid_t *pid, FAR const char *name, main_t entry,
       return -ret;
     }
 
+#ifdef CONFIG_SCHED_WAITPID
   /* Disable pre-emption so that the proxy does not run until waitpid
    * is called.  This is probably unnecessary since the task_spawn_proxy has
    * the same priority as this thread; it should be schedule behind this
    * task in the ready-to-run list.
+   *
+   * REVISIT:  This will may not have the desired effect in SMP mode.
    */
 
-#ifdef CONFIG_SCHED_WAITPID
   sched_lock();
 #endif