]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
MIPS: inline mips_init_[id]cache functions
authorPaul Burton <paul.burton@imgtec.com>
Thu, 29 Jan 2015 01:28:01 +0000 (01:28 +0000)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Thu, 29 Jan 2015 11:55:01 +0000 (12:55 +0100)
commitca4e833cd6409c72e5b13ee803a4f08381e6d160
tree939c2bb7d6dede36a256a26d8a71fd994cdbc45e
parentac22feca1135b81ecc4d38995e98b59943d1bbf5
MIPS: inline mips_init_[id]cache functions

The mips_init_[id]cache functions are small & only called once from a
single callsite. Inlining them allows mips_cache_reset to avoid having
to bother moving arguments around & leaves it a leaf function which is
thus able to simply keep the return address live in the ra register
throughout, simplifying the code.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
arch/mips/lib/cache_init.S