sfxge_ev.c (301309) | sfxge_ev.c (301724) |
---|---|
1/*- 2 * Copyright (c) 2010-2016 Solarflare Communications Inc. 3 * All rights reserved. 4 * 5 * This software was developed in part by Philip Paeps under contract for 6 * Solarflare Communications, Inc. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * 29 * The views and conclusions contained in the software and documentation are 30 * those of the authors and should not be interpreted as representing official 31 * policies, either expressed or implied, of the FreeBSD Project. 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2010-2016 Solarflare Communications Inc. 3 * All rights reserved. 4 * 5 * This software was developed in part by Philip Paeps under contract for 6 * Solarflare Communications, Inc. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * 29 * The views and conclusions contained in the software and documentation are 30 * those of the authors and should not be interpreted as representing official 31 * policies, either expressed or implied, of the FreeBSD Project. 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/dev/sfxge/sfxge_ev.c 301309 2016-06-04 09:20:46Z arybchik $"); | 35__FBSDID("$FreeBSD: head/sys/dev/sfxge/sfxge_ev.c 301724 2016-06-09 12:29:03Z arybchik $"); |
36 37#include <sys/param.h> 38#include <sys/kernel.h> 39#include <sys/malloc.h> 40#include <sys/param.h> 41#include <sys/queue.h> 42#include <sys/systm.h> 43#include <sys/taskqueue.h> --- 404 unchanged lines hidden (view full) --- 448 clock_t now; 449 450 SFXGE_ADAPTER_LOCK(sc); 451 452 if (__predict_false(sc->evq[0]->init_state != SFXGE_EVQ_STARTED)) 453 goto out; 454 455 now = ticks; | 36 37#include <sys/param.h> 38#include <sys/kernel.h> 39#include <sys/malloc.h> 40#include <sys/param.h> 41#include <sys/queue.h> 42#include <sys/systm.h> 43#include <sys/taskqueue.h> --- 404 unchanged lines hidden (view full) --- 448 clock_t now; 449 450 SFXGE_ADAPTER_LOCK(sc); 451 452 if (__predict_false(sc->evq[0]->init_state != SFXGE_EVQ_STARTED)) 453 goto out; 454 455 now = ticks; |
456 if (now - sc->ev_stats_update_time < hz) | 456 if ((unsigned int)(now - sc->ev_stats_update_time) < (unsigned int)hz) |
457 goto out; 458 459 sc->ev_stats_update_time = now; 460 461 /* Add event counts from each event queue in turn */ 462 for (index = 0; index < sc->evq_count; index++) { 463 evq = sc->evq[index]; 464 SFXGE_EVQ_LOCK(evq); --- 478 unchanged lines hidden --- | 457 goto out; 458 459 sc->ev_stats_update_time = now; 460 461 /* Add event counts from each event queue in turn */ 462 for (index = 0; index < sc->evq_count; index++) { 463 evq = sc->evq[index]; 464 SFXGE_EVQ_LOCK(evq); --- 478 unchanged lines hidden --- |