From patchwork Tue Sep 18 03:12:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 11490 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 9F4C123F98 for ; Tue, 18 Sep 2012 03:13:14 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 0237CA18523 for ; Tue, 18 Sep 2012 03:13:13 +0000 (UTC) Received: by iafj25 with SMTP id j25so5599641iaf.11 for ; Mon, 17 Sep 2012 20:13:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding:x-cbid :x-gm-message-state; bh=uNaA7wSr1DXw824muOx3XPnQJgPr7byEmg/P/gskQ4I=; b=Ehv6UIfNvNVsivPBzr3NiWAvyHx8iiCy0eg3Bu2Q9WXYoJTFOTwijLWHznOB+SPq0J eZWO2hx9bF+VtcGAs87Rrjzf8/Oor4yYGKazn3Pl1Dkh1TJjoBCfWz4Q0WU1ukrsJ1m4 8HG5M/RwtgrgWjmXjt8DfNc0jKQ1fUSoCZ+a9Q/+llXIve0hJOFXSpYyaeScotL8FK3H /5/3oSQPr/aFllhkeEtxdwexiSUo9oPEAH97pbONw4A3DOS5ocmvxuZsOKtaq87zUtc6 9pm5n3gFhcCJqrfj6dqUdwVvp4uDvUc68sleKaKlQybUvEadHPkEr/pJf1eq6xSSIi9V axBQ== Received: by 10.42.60.139 with SMTP id q11mr10563298ich.53.1347937993386; Mon, 17 Sep 2012 20:13:13 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp350842igc; Mon, 17 Sep 2012 20:13:11 -0700 (PDT) Received: by 10.50.181.231 with SMTP id dz7mr9121741igc.22.1347937990991; Mon, 17 Sep 2012 20:13:10 -0700 (PDT) Received: from e2.ny.us.ibm.com (e2.ny.us.ibm.com. [32.97.182.142]) by mx.google.com with ESMTPS id z1si12968165igi.65.2012.09.17.20.13.10 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Sep 2012 20:13:10 -0700 (PDT) Received-SPF: neutral (google.com: 32.97.182.142 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) client-ip=32.97.182.142; Authentication-Results: mx.google.com; spf=neutral (google.com: 32.97.182.142 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) smtp.mail=john.stultz@linaro.org Received: from /spool/local by e2.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 17 Sep 2012 23:13:10 -0400 Received: from d01relay01.pok.ibm.com (9.56.227.233) by e2.ny.us.ibm.com (192.168.1.102) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 17 Sep 2012 23:13:08 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay01.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q8I3D7cP131120; Mon, 17 Sep 2012 23:13:07 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q8I3D7ou011849; Tue, 18 Sep 2012 00:13:07 -0300 Received: from kernel-pok.stglabs.ibm.com (kernel.stglabs.ibm.com [9.114.214.19]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q8I3D65O011794; Tue, 18 Sep 2012 00:13:06 -0300 From: John Stultz To: Linux Kernel Cc: John Stultz , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Colin Cross , Thomas Gleixner Subject: [PATCH 2/3] alarmtimer: Remove unused helpers & defines Date: Mon, 17 Sep 2012 23:12:54 -0400 Message-Id: <1347937975-34169-3-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1347937975-34169-1-git-send-email-john.stultz@linaro.org> References: <1347937975-34169-1-git-send-email-john.stultz@linaro.org> MIME-Version: 1.0 x-cbid: 12091803-5112-0000-0000-00000C7DFD2E X-Gm-Message-State: ALoCoQnTLiKJ8xnM5mvO7oFcWCclGm9PDHgKwPrd8IA5PxI2PtD5lOyqcQEuITbd2/4Qm2jbkURO No one is using these alarmtimer state helpers, so yank them. Cc: Arve Hjønnevåg Cc: Colin Cross Cc: Thomas Gleixner Signed-off-by: John Stultz --- include/linux/alarmtimer.h | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/include/linux/alarmtimer.h b/include/linux/alarmtimer.h index f122c9f..9069694 100644 --- a/include/linux/alarmtimer.h +++ b/include/linux/alarmtimer.h @@ -21,7 +21,6 @@ enum alarmtimer_restart { #define ALARMTIMER_STATE_INACTIVE 0x00 #define ALARMTIMER_STATE_ENQUEUED 0x01 -#define ALARMTIMER_STATE_CALLBACK 0x02 /** * struct alarm - Alarm timer structure @@ -50,33 +49,6 @@ int alarm_cancel(struct alarm *alarm); u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval); -/* - * A alarmtimer is active, when it is enqueued into timerqueue or the - * callback function is running. - */ -static inline int alarmtimer_active(const struct alarm *timer) -{ - return timer->state != ALARMTIMER_STATE_INACTIVE; -} - -/* - * Helper function to check, whether the timer is on one of the queues - */ -static inline int alarmtimer_is_queued(struct alarm *timer) -{ - return timer->state & ALARMTIMER_STATE_ENQUEUED; -} - -/* - * Helper function to check, whether the timer is running the callback - * function - */ -static inline int alarmtimer_callback_running(struct alarm *timer) -{ - return timer->state & ALARMTIMER_STATE_CALLBACK; -} - - /* Provide way to access the rtc device being used by alarmtimers */ struct rtc_device *alarmtimer_get_rtcdev(void);