[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Fix wrong size of outgoing packets in the FEC driver



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 2014-09-04 22:47, Ole Loots wrote:
[...]
> I believe I also looked at other drivers in the freemint source and
> I believe it's not so unusually to schedule interrupt processing.
> AFAIK this scheme is called Top Halve and Bottom Halve, please
> correct me if I'm wrong or tell me how to do it better, I just want
> to learn about it :)

That's right.  Top/bottom halve is exactly what know from some
real-time interrupt handlers.  Unfortunately, top/bottom halve design
carries only so far and collapses when the processing of the data
takes much more time than it takes to receive new data.  This
certainly does not imply to do the data processing in the interrupt
routine anyway.  No, if there is too much data to be processed, then
don't do it on tight schedules.

Now you made me curious.  What is the amount of data that needs to be
processed in what time interval?


Cheers
	T.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iF4EAREIAAYFAlQI2LUACgkQSwr0ZkS0/dwSvQD/UDnmkqLdPTsrLeakmCmaEqPS
Xun03vln0E/rHRM7bQQA/21rk7FIbjUzY3uz0dafB0XyK+CVYwQtRABuUibDl40G
=pqV2
-----END PGP SIGNATURE-----