Commit bd2b57ab authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

staging: csr: oska: remove timer.c and timer.h

No one is using these, remove them.

Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com>
Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com>
Cc: Riku Mettälä <riku.mettala@bluegiga.com>
Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3421ee2f
......@@ -3,6 +3,5 @@ obj-$(CONFIG_CSR_WIFI) := csr_oska.o
csr_oska-y := \
event.o \
oska_module.o \
thread.o \
timer.o
thread.o
/*
* OSKA Linux implementation -- timers.
*
* Copyright (C) 2007 Cambridge Silicon Radio Ltd.
*
* Refer to LICENSE.txt included with this source code for details on
* the license terms.
*/
#include <linux/module.h>
#include "timer.h"
static void timer_func(unsigned long data)
{
os_timer_t *timer = (os_timer_t *)data;
timer->func(timer->arg);
}
void os_timer_init(os_timer_t *timer, os_timer_func_t func, void *arg)
{
timer->func = func;
timer->arg = arg;
timer->timer.function = timer_func;
timer->timer.data = (unsigned long)timer;
init_timer(&timer->timer);
}
EXPORT_SYMBOL(os_timer_init);
/*
* OSKA Linux implementation -- timers.
*
* Copyright (C) 2009 Cambridge Silicon Radio Ltd.
*
* Refer to LICENSE.txt included with this source code for details on
* the license terms.
*/
#ifndef __OSKA_LINUX_TIMER_H
#define __OSKA_LINUX_TIMER_H
#include <linux/kernel.h>
#include <linux/timer.h>
typedef void (*os_timer_func_t)(void *arg);
typedef struct {
os_timer_func_t func;
void *arg;
struct timer_list timer;
} os_timer_t;
void os_timer_init(os_timer_t *timer, os_timer_func_t func, void *arg);
static inline void os_timer_destroy(os_timer_t *timer)
{
del_timer_sync(&timer->timer);
}
static inline void os_timer_set(os_timer_t *timer, unsigned long expires_ms)
{
mod_timer(&timer->timer, jiffies + msecs_to_jiffies(expires_ms));
}
static inline void os_timer_cancel(os_timer_t *timer)
{
del_timer(&timer->timer);
}
#endif /* #ifndef __OSKA_LINUX_TIMER_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment