From: Sebastian Siewior Date: Sun, 21 Oct 2007 08:18:12 +0000 (+0800) Subject: [CRYPTO] geode: relax in busy loop and care about return value X-Git-Tag: v2.6.25-rc1~1242^2~117 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f4e4773761d0aa622411469b54d6570005a66b1;p=pandora-kernel.git [CRYPTO] geode: relax in busy loop and care about return value The code waits in a busy loop until the hardware finishes the encryption or decryption process. This wants a cpu_relax() :) The busy loop finishes either if the encryption is done or if the counter is zero. If the latter is true than the hardware failed. Since this should not happen, leave sith a BUG(). Signed-off-by: Sebastian Siewior Signed-off-by: Herbert Xu --- Reading git-diff-tree failed