[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1298369864-24429-1-git-send-email-peppe.cavallaro@st.com>
Date: Tue, 22 Feb 2011 11:17:40 +0100
From: Peppe CAVALLARO <peppe.cavallaro@...com>
To: "linux-sh@...r.kernel.org" <linux-sh@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Cc: Stuart MENEFY <stuart.menefy@...com>,
Peppe CAVALLARO <peppe.cavallaro@...com>
Subject: [PATCH 0/4] simple generic timer infrastructure and stmmac example
Many devices targeted at the embedded market provide a number of
generic timers which are capable of generating interrupts at a
requested rate. These can then be used in the implementation of drivers
for other peripherals which require a timer interrupt, without having
to provide an additional timer as part of that peripheral.
A code provides a simple abstraction layer which allows a timer to be
registered, and for a driver to request a timer.
Currently this doesn't provide any of the additional information, such
as precision or position in clock framework which might be required
for a fully featured driver.
This patches also updates the stmmac Network device driver to use
the generic timer infrastructure The timer is used for mitigating
the number of the interrupts. This helps many people to save the
CPU on STM platforms with MAC10/100 and GMAC device without an
embedded timer.
Welcome comments and review.
Giuseppe Cavallaro (3):
sh_timer: add the support to use the generic timer
stmmac: switch to use the new generic timer interface
stmmac: rework and improvement the stmmac timer
Stuart Menefy (1):
clksource: Generic timer infrastructure
drivers/clocksource/Makefile | 1 +
drivers/clocksource/generictimer.c | 60 +++++++++++++++++++++
drivers/clocksource/sh_tmu.c | 72 +++++++++++++++++++++++++
drivers/net/stmmac/Kconfig | 19 ++++---
drivers/net/stmmac/Makefile | 2 +-
drivers/net/stmmac/common.h | 6 ++
drivers/net/stmmac/stmmac.h | 5 +-
drivers/net/stmmac/stmmac_main.c | 66 ++++++++++++-----------
drivers/net/stmmac/stmmac_timer.c | 103 +++++++++++++++++++++---------------
drivers/net/stmmac/stmmac_timer.h | 12 ++---
include/linux/generictimer.h | 41 ++++++++++++++
11 files changed, 295 insertions(+), 92 deletions(-)
create mode 100644 drivers/clocksource/generictimer.c
create mode 100644 include/linux/generictimer.h
--
1.7.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists