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

Re: Crash system!!!



> During this time I calculate statistics/check the line status. Everything
> looks find, except one place:
> 	if (ticks > hz * 0.2)
> 
> if I change this line to
> 	if (ticks > ((hz * 2) / 10)
> 
> everything is perfect.

You should never, never, never use floating point arithmetic in the
kernel. Fixed-point (as done in your second line) is ok.

Miod