zephyr/subsys
Charles E. Youse 3036faf88a tests/benchmarks: fix BOOT_TIME_MEASUREMENT
The boot time measurement sample was giving bogus values on x86: an
assumption was made that the system timer is in sync with the CPU TSC,
which is not the case on most x86 boards.

Boot time measurements are no longer permitted unless the timer source
is the local APIC. To avoid issues of TSC scaling, the startup datum
has been forced to 0, which is in line with the ARM implementation
(which is the only other platform which supports this feature).

Cleanups along the way:

As the datum is now assumed zero, some variables are removed and
calculations simplified. The global variables involved in boot time
measurements are moved to the kernel.h header rather than being
redeclared in every place they are referenced. Since none of the
measurements actually use 64-bit precision, the samples are reduced
to 32-bit quantities.

In addition, this feature has been enabled in long mode.

Fixes: #19144

Signed-off-by: Charles E. Youse <charles.youse@intel.com>
2019-09-21 16:43:26 -07:00
..
bluetooth Bluetooth: host: Fold consecutive calls to bt_rand into one 2019-09-20 08:22:18 +03:00
console console: Remove deprecated function console_register_line_input 2019-09-18 19:14:25 -05:00
cpp cpp: support for 64-bit constructors 2019-07-30 18:55:34 -07:00
debug tests/benchmarks: fix BOOT_TIME_MEASUREMENT 2019-09-21 16:43:26 -07:00
dfu dfu: fix printf formatting in img_util 2019-08-16 20:40:13 +02:00
disk disk: sdhc: fix command name sdhc_cmd_r1 2019-09-21 12:49:47 -05:00
fb scripts: gen_cfb_font_header: modify to replicate cfb fonts 2019-07-31 05:43:50 -04:00
fs nvs: fix overwriting with truncated data 2019-09-18 22:31:02 -04:00
jwt cleanup: include/: move zephyr/jwt.h to data/jwt.h 2019-06-27 22:55:49 -04:00
logging log_core: always build stubs when !userspace 2019-09-12 05:17:39 -04:00
mgmt Bluetooth: GATT: Add support to setting permission on CCCD 2019-09-19 21:12:39 +03:00
net net: socket: Init net_context when taken into use 2019-09-18 23:47:36 +03:00
power cleanup: include/: move misc/reboot.h to power/reboot.h 2019-06-27 22:55:49 -04:00
random cleanup: include/: move entropy.h to drivers/entropy.h 2019-06-27 22:55:49 -04:00
settings fcb: start using errno codes 2019-09-08 12:42:53 +02:00
shell shell: kconfig: Fix wrong UART_SHELL_ON_DEV_NAME value due to typo 2019-09-16 20:10:09 +03:00
stats cleanup: include/: move stats.h to stats/stats.h 2019-06-27 22:55:49 -04:00
storage subsys/storage/flash_map: detect missing flash device 2019-07-24 09:20:56 -04:00
testsuite testsuite: support reboot to retry intermittent tests 2019-09-19 09:03:23 -04:00
usb usb_device: Fix typo in comment 2019-09-09 13:38:41 -05:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
Kconfig