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

Re: Re: IDE LED support on powerpc



> About a year ago I remember having tried to make BLINK_IDE a sysctl option.
>
> It was very simple to replace the compilation option (#define) with a
> variable.  The problem I had (and I didn't succeed to solve it) is how
> to link this variable to a sysctl option :o(  Also, I asked myself about

Look at (for instance) therm_adt746x driver source for examples.

> how can I avoid the following race condition: when someone modify the
> sysctl option, the led is on state on.

Postpone the actual state change until the time when the LED gets switched
off again, then disable the whole thing.

	Michael



Reply to: