]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: cros-ec: Record event timestamp in the hard irq
authorGwendal Grignou <gwendal@chromium.org>
Tue, 19 Nov 2019 12:45:46 +0000 (13:45 +0100)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Thu, 21 Nov 2019 10:23:14 +0000 (11:23 +0100)
commita2d54ef844c3d5cb670464dc27fe98758d1827d0
tree759954afc73e37fecba299388f1d6be0909a529e
parent36df046d42753eed3c3702a2411a9536a39f1dc2
platform/chrome: cros-ec: Record event timestamp in the hard irq

To improve sensor timestamp precision, given EC and AP are in different
time domains, the AP needs to try to record the exact moment an event
was signalled to the AP by the EC as soon as possible after it happens.

First thing in the hard irq is the best place for this.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@kernel.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/cros_ec.c
drivers/platform/chrome/cros_ec_ishtp.c
drivers/platform/chrome/cros_ec_lpc.c
include/linux/platform_data/cros_ec_proto.h