Re: [PATCH 2.6.16-mm1 1/3] rtc: m41t00 driver should use workqueueinstead of tasklet

From: Jean Delvare
Date: Mon Mar 27 2006 - 12:09:10 EST


Hi Mark,

> The m41t00 i2c/rtc driver currently uses a tasklet to schedule interrupt-level
> writes to the rtc. This patch causes the driver to use a workqueue instead.
> (...)
> int
> m41t00_set_rtc_time(ulong nowtime)
> {
> new_time = nowtime;
>
> if (in_interrupt())
> - tasklet_schedule(&m41t00_tasklet);
> + schedule_work(&set_rtc_time_task);
> else
> - m41t00_set_tlet((ulong)&new_time);
> + m41t00_set((void *)&new_time);

This cast is not needed.

>
> return 0;
> }

Thanks,
--
Jean Delvare
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/