aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/ev_epoll1_linux.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-05-05 15:27:40 +0000
committerGravatar Craig Tiller <ctiller@google.com>2017-05-05 15:27:40 +0000
commitcfaa046a0127f9e40e63eaf5490164794d6ab253 (patch)
treeed02a724f94217eeba951c316b655f6cfbc83190 /src/core/lib/iomgr/ev_epoll1_linux.c
parenteda29c639871adb28d688ab8724f9754f2f209fc (diff)
Integrate new tracers
Diffstat (limited to 'src/core/lib/iomgr/ev_epoll1_linux.c')
-rw-r--r--src/core/lib/iomgr/ev_epoll1_linux.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/core/lib/iomgr/ev_epoll1_linux.c b/src/core/lib/iomgr/ev_epoll1_linux.c
index 90c5546555..8aa69cd73a 100644
--- a/src/core/lib/iomgr/ev_epoll1_linux.c
+++ b/src/core/lib/iomgr/ev_epoll1_linux.c
@@ -63,12 +63,8 @@
#include "src/core/lib/profiling/timers.h"
#include "src/core/lib/support/block_annotate.h"
-/* TODO: sreek: Right now, this wakes up all pollers. In future we should make
- * sure to wake up one polling thread (which can wake up other threads if
- * needed) */
static grpc_wakeup_fd global_wakeup_fd;
static int g_epfd;
-static gpr_atm g_timer_kick;
/*******************************************************************************
* Fd Declarations
@@ -512,9 +508,6 @@ static grpc_error *pollset_epoll(grpc_exec_ctx *exec_ctx, grpc_pollset *pollset,
for (int i = 0; i < r; i++) {
void *data_ptr = events[i].data.ptr;
if (data_ptr == &global_wakeup_fd) {
- if (gpr_atm_no_barrier_cas(&g_timer_kick, 1, 0)) {
- grpc_timer_consume_kick();
- }
gpr_mu_lock(&g_wq_mu);
grpc_closure_list_move(&g_wq_items, &exec_ctx->closure_list);
gpr_mu_unlock(&g_wq_mu);
@@ -799,11 +792,6 @@ static grpc_error *pollset_kick(grpc_pollset *pollset,
static void pollset_add_fd(grpc_exec_ctx *exec_ctx, grpc_pollset *pollset,
grpc_fd *fd) {}
-static grpc_error *kick_poller(void) {
- gpr_atm_no_barrier_store(&g_timer_kick, 1);
- return grpc_wakeup_fd_wakeup(&global_wakeup_fd);
-}
-
/*******************************************************************************
* Workqueue Definitions
*/
@@ -951,8 +939,6 @@ static const grpc_event_engine_vtable vtable = {
.pollset_set_add_fd = pollset_set_add_fd,
.pollset_set_del_fd = pollset_set_del_fd,
- .kick_poller = kick_poller,
-
.workqueue_ref = workqueue_ref,
.workqueue_unref = workqueue_unref,
.workqueue_scheduler = workqueue_scheduler,