lkml.org 
[lkml]   [2006]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2.6.16-mm1 1/3] rtc: m41t00 driver should use workqueue instead of tasklet
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-03-27 19:07    [W:0.061 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site