um: time-travel: avoid multiple identical propagations
authorJohannes Berg <johannes.berg@intel.com>
Fri, 4 Dec 2020 11:34:34 +0000 (12:34 +0100)
committerRichard Weinberger <richard@nod.at>
Sun, 13 Dec 2020 21:38:06 +0000 (22:38 +0100)
commit58b09f68697066dfde948153c82dd5d85e10f127
treeab41f419aeb6a9dbedc2d515173e412b69804f69
parent3c6ac61bc91ea39031f020c973a91db0aee10fde
um: time-travel: avoid multiple identical propagations

If there is some kind of interrupt negotation or such then
it may happen that we send an update message multiple times,
avoid that in the interest of efficiency by storing the last
transmitted value and only sending a new update if it's not
the same as the last update.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/kernel/time.c