xiaoxiang781216 commented on code in PR #10264:
URL: https://github.com/apache/nuttx/pull/10264#discussion_r1298040254


##########
arch/arm/src/armv6-m/arm_cpuinfo.c:
##########
@@ -51,9 +51,12 @@ ssize_t up_show_cpuinfo(FAR char *buf, size_t buf_size, 
off_t file_off)
       procfs_sprintf(buf, buf_size, &file_off, "BogoMIPS\t: %u.%02u\n",
                      (CONFIG_BOARD_LOOPSPERMSEC / 1000),
                      (CONFIG_BOARD_LOOPSPERMSEC / 10) % 100);
+#if defined(CONFIG_ARCH_PERF_EVENTS) || defined(CONFIG_ALARM_ARCH) || \

Review Comment:
   ```suggestion
   #if defined(CONFIG_ARCH_PERF_EVENTS)
   ```



##########
arch/arm/src/armv6-m/arm_cpuinfo.c:
##########
@@ -51,9 +51,12 @@ ssize_t up_show_cpuinfo(FAR char *buf, size_t buf_size, 
off_t file_off)
       procfs_sprintf(buf, buf_size, &file_off, "BogoMIPS\t: %u.%02u\n",
                      (CONFIG_BOARD_LOOPSPERMSEC / 1000),
                      (CONFIG_BOARD_LOOPSPERMSEC / 10) % 100);
+#if defined(CONFIG_ARCH_PERF_EVENTS) || defined(CONFIG_ALARM_ARCH) || \
+    defined(CONFIG_TIMER_ARCH)

Review Comment:
   remove



##########
arch/arm/src/armv6-m/arm_cpuinfo.c:
##########
@@ -51,9 +51,12 @@ ssize_t up_show_cpuinfo(FAR char *buf, size_t buf_size, 
off_t file_off)
       procfs_sprintf(buf, buf_size, &file_off, "BogoMIPS\t: %u.%02u\n",
                      (CONFIG_BOARD_LOOPSPERMSEC / 1000),
                      (CONFIG_BOARD_LOOPSPERMSEC / 10) % 100);
+#if defined(CONFIG_ARCH_PERF_EVENTS) || defined(CONFIG_ALARM_ARCH) || \

Review Comment:
   let's fix other place too



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to