This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit d7799632d09fb94b1ef7c7f26e23922edbd28534
Author: xuxingliang <[email protected]>
AuthorDate: Thu Nov 12 00:33:37 2026 +0800

    fs/procfs: call running_regs() directly in tcbinfo
    
    tcbinfo_running_regs() is a non-optimized wrapper around
    running_regs().  It was added to keep g_running_tasks from being
    optimized out, but g_running_tasks is now used by the scheduler on
    every configuration, so the wrapper is no longer needed.
    
    Signed-off-by: xuxingliang <[email protected]>
    Signed-off-by: jingfei <[email protected]>
---
 fs/procfs/fs_procfstcbinfo.c | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/fs/procfs/fs_procfstcbinfo.c b/fs/procfs/fs_procfstcbinfo.c
index 91010d8def4..1e2b5beb1e1 100644
--- a/fs/procfs/fs_procfstcbinfo.c
+++ b/fs/procfs/fs_procfstcbinfo.c
@@ -180,20 +180,6 @@ static int tcbinfo_close(FAR struct file *filep)
   return OK;
 }
 
-/****************************************************************************
- * Name: tcbinfo_running_regs
- *
- * Description:
- *   A special version of running_regs() that is non-optimized.
- *
- ****************************************************************************/
-
-nooptimiziation_function
-FAR static void *tcbinfo_running_regs(void)
-{
-  return running_regs();
-}
-
 /****************************************************************************
  * Name: tcbinfo_read
  ****************************************************************************/
@@ -218,7 +204,7 @@ static ssize_t tcbinfo_read(FAR struct file *filep, FAR 
char *buffer,
       linesize = procfs_snprintf(attr->line, TCBINFO_LINELEN,
                                  "pointer %p size %zu current regs %p\n",
                                  &g_tcbinfo, sizeof(struct tcbinfo_s),
-                                 tcbinfo_running_regs());
+                                 running_regs());
 
       /* Save the linesize in case we are re-entered with f_pos > 0 */
 

Reply via email to