summaryrefslogtreecommitdiffstats
path: root/mm/allocpercpu.c
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-09-19 21:20:17 +0200
committerJaroslav Kysela <perex@perex.cz>2007-10-16 16:50:59 +0200
commitfe1b5e874dad88646d344b092d3066cb21b279eb (patch)
treed5181520c738565f2481b5e3e2eaae1cc6a152ff /mm/allocpercpu.c
parentb438f817b16eec5b497fe78cc2b889f3276e6508 (diff)
downloadop-kernel-dev-fe1b5e874dad88646d344b092d3066cb21b279eb.zip
op-kernel-dev-fe1b5e874dad88646d344b092d3066cb21b279eb.tar.gz
[ALSA] ad1848: simplify MCE down code
The polling loop to check for ACI to go down was more convoluted than it needed to be. New loop should be more efficient and it is a lot simpler. The old loop checked for a timeout before checking for ACI down, which could result in an erroneous timeout. It's only a failure if the timeout expires _and_ ACI is still high. There is nothing wrong with the timeout expiring while the task is sleeping if ACI went low. A polling loop to check for the device to leaving INIT mode is removed. The device must have already left init for the previous ACI loop to have finished. Acked-by: Rene Herman <rene.herman@gmail.com> Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'mm/allocpercpu.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud