Messages in this thread | | | Date | Mon, 27 Mar 2006 19:03:58 +0200 | From | Jean Delvare <> | Subject | Re: [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/
| |