u64_stats: Introduce IRQs disabled helpers
authorFrederic Weisbecker <fweisbec@gmail.com>
Mon, 26 Sep 2016 00:29:19 +0000 (02:29 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 30 Sep 2016 09:46:40 +0000 (11:46 +0200)
commit68107df5f2cb5dc3785be40162bfe2f19a178bbb
tree12b6a4660458f192213eeac3071c4acb90dbbe63
parent2810f611f908112ea1b30bc016d25205acb3d486
u64_stats: Introduce IRQs disabled helpers

Introduce light versions of u64_stats helpers for context where
either preempt or IRQs are disabled. This way we can make this library
usable by scheduler irqtime accounting which currenty implement its
ad-hoc version.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Wanpeng Li <wanpeng.li@hotmail.com>
Link: http://lkml.kernel.org/r/1474849761-12678-4-git-send-email-fweisbec@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/u64_stats_sync.h