#include "../cache.h" #include "progress.h" static void null_progress__update(struct ui_progress *p __maybe_unused) { } static struct ui_progress_ops null_progress__ops = { .update = null_progress__update, }; struct ui_progress_ops *ui_progress__ops = &null_progress__ops; void ui_progress__update(struct ui_progress *p, u64 adv) { p->curr += adv; if (p->curr >= p->next) { p->next += p->step; ui_progress__ops->update(p); } } void ui_progress__init(struct ui_progress *p, u64 total, const char *title) { p->curr = 0; p->next = p->step = total / 16; p->total = total; p->title = title; } void ui_progress__finish(void) { if (ui_progress__ops->finish) ui_progress__ops->finish(); } class='main'>index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/net/9p/trans_virtio.c
elected'>3
AgeCommit message (Collapse)AuthorFilesLines
space:
mode:
authorAlexander Stein <alexander.stein@systec-electronic.com>2017-01-30 12:35:28 +0100
committerLinus Walleij <linus.walleij@linaro.org>2017-01-30 15:53:57 +0100
commitcdca06e4e85974d8a3503ab15709dbbaf90d3dd1 (patch)
tree268b0c01070a957006db97c88dccb5fb061440ff /net/openvswitch/Makefile
parent1b89970d81bbd52720fc64a3fe9572ee33588363 (diff)
pinctrl: baytrail: Add missing spinlock usage in byt_gpio_irq_handler
According to VLI64 Intel Atom E3800 Specification Update (#329901) concurrent read accesses may result in returning 0xffffffff and write accesses may be dropped silently. To workaround all accesses must be protected by locks. Cc: stable@vger.kernel.org Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'net/openvswitch/Makefile')