Commit 1c5b113
committed
arch/delays: Set invalid default value for BOARD_LOOPSPERMSEC
To resolve #17004, this commit sets the default Kconfig value for
CONFIG_BOARD_LOOPSPERMSEC as -1, which is invalid. It statically asserts
at compile time that the value is greater than or equal to 0 so that the
user is notified if their board/configuration does not yet have a
calibrated value for this configuration option. The user is directed to
set a non-negative value and then later calibrate with `calib_udelay`.
Signed-off-by: Matteo Golin <matteo.golin@gmail.com>1 parent 778f3fa commit 1c5b113
2 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1274 | 1274 | | |
1275 | 1275 | | |
1276 | 1276 | | |
1277 | | - | |
| 1277 | + | |
1278 | 1278 | | |
1279 | 1279 | | |
1280 | | - | |
1281 | | - | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
1282 | 1283 | | |
1283 | 1284 | | |
1284 | 1285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
102 | 114 | | |
103 | 115 | | |
104 | 116 | | |
| |||
0 commit comments