#include #include #include "gtk.h" #include "../ui.h" #include "../helpline.h" #include "../../util/debug.h" static void gtk_helpline_pop(void) { if (!perf_gtk__is_active_context(pgctx)) return; gtk_statusbar_pop(GTK_STATUSBAR(pgctx->statbar), pgctx->statbar_ctx_id); } static void gtk_helpline_push(const char *msg) { if (!perf_gtk__is_active_context(pgctx)) return; gtk_statusbar_push(GTK_STATUSBAR(pgctx->statbar), pgctx->statbar_ctx_id, msg); } static int gtk_helpline_show(const char *fmt, va_list ap) { int ret; char *ptr; static int backlog; ret = vscnprintf(ui_helpline__current + backlog, sizeof(ui_helpline__current) - backlog, fmt, ap); backlog += ret; /* only first line can be displayed */ ptr = strchr(ui_helpline__current, '\n'); if (ptr && (ptr - ui_helpline__current) <= backlog) { *ptr = '\0'; ui_helpline__puts(ui_helpline__current); backlog = 0; } return ret; } static struct ui_helpline gtk_helpline_fns = { .pop = gtk_helpline_pop, .push = gtk_helpline_push, .show = gtk_helpline_show, }; void perf_gtk__init_helpline(void) { helpline_fns = >k_helpline_fns; } move net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
it();'>
AgeCommit message (Expand)AuthorFilesLines
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2017-01-20 08:20:24 -0800
committerArnd Bergmann <arnd@arndb.de>2017-01-27 16:46:42 +0100
commitfeb3cbea0946c67060e2d5bcb7499b0a6f6700fe (patch)
tree4789978854a7fd97de08f4b77f220bcd9278417b /net/x25
parent7a308bb3016f57e5be11a677d15b821536419d36 (diff)
ARM64: dts: meson-gxbb-odroidc2: fix GbE tx link breakage
OdroidC2 GbE link breaks under heavy tx transfer. This happens even if the MAC does not enable Energy Efficient Ethernet (No Low Power state Idle on the Tx path). The problem seems to come from the phy Rx path, entering the LPI state. Disabling EEE advertisement on the phy prevent this feature to be negociated with the link partner and solve the issue. Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'net/x25')