mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
Run all files modified by PR274 through nxstyle.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/****************************************************************************
|
||||
* include/nuttx/clock.h
|
||||
*
|
||||
* Copyright (C) 2007-2009, 2011-2012, 2014, 2016-2018 Gregory Nutt.
|
||||
All rights reserved.
|
||||
* Copyright (C) 2007-2009, 2011-2012, 2014, 2016-2018, 2020 Gregory Nutt.
|
||||
* All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -54,6 +54,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/* Configuration ************************************************************/
|
||||
|
||||
/* Efficient, direct access to OS global timer variables will be supported
|
||||
* if the execution environment has direct access to kernel global data.
|
||||
* The code in this execution context can access the kernel global data
|
||||
@@ -71,23 +72,23 @@
|
||||
|
||||
#undef __HAVE_KERNEL_GLOBALS
|
||||
#if defined(CONFIG_SCHED_TICKLESS)
|
||||
/* Case 1: There is no global timer data */
|
||||
/* Case 1: There is no global timer data */
|
||||
|
||||
#elif defined(CONFIG_BUILD_PROTECTED) && defined(__KERNEL__)
|
||||
/* Case 3: Kernel mode of protected kernel build */
|
||||
/* Case 3: Kernel mode of protected kernel build */
|
||||
|
||||
# define __HAVE_KERNEL_GLOBALS 1
|
||||
|
||||
#elif defined(CONFIG_BUILD_KERNEL) && defined(__KERNEL__)
|
||||
/* Case 3: Kernel only build */
|
||||
/* Case 3: Kernel only build */
|
||||
|
||||
# define __HAVE_KERNEL_GLOBALS 1
|
||||
|
||||
#elif defined(CONFIG_LIB_SYSCALL)
|
||||
/* Case 4: Building with SYSCALLs enabled, but not part of a kernel build */
|
||||
/* Case 4: Building with SYSCALLs enabled, but not part of a kernel build */
|
||||
|
||||
#else
|
||||
/* Case 2: Un-protected, non-kernel build */
|
||||
/* Case 2: Un-protected, non-kernel build */
|
||||
|
||||
# define __HAVE_KERNEL_GLOBALS 1
|
||||
#endif
|
||||
@@ -252,6 +253,7 @@ extern "C"
|
||||
#endif
|
||||
|
||||
/* Access to raw system clock ***********************************************/
|
||||
|
||||
/* Direct access to the system timer/counter is supported only if (1) the
|
||||
* system timer counter is available (i.e., we are not configured to use
|
||||
* a hardware periodic timer), and (2) the execution environment has direct
|
||||
|
||||
Reference in New Issue
Block a user