nios2: Use IS_ENABLED instead of #ifdefs to check config symbols
authorTobias Klauser <tklauser@distanz.ch>
Mon, 17 Nov 2014 10:30:37 +0000 (18:30 +0800)
committerLey Foon Tan <lftan@altera.com>
Mon, 8 Dec 2014 04:56:07 +0000 (12:56 +0800)
commitac8ab8dd95f6fae76f0742499206d29eea4604cd
tree90e4bfb7904fe3b9cfcc4d913576dc05bedceed6
parent2fc8483fdcde767795402a38a53e647811dc9abf
nios2: Use IS_ENABLED instead of #ifdefs to check config symbols

Make the checking for div/mul/mulx instruction config symbols easier to
read by using IS_ENABLED instead of #ifdefs.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Ley Foon Tan <lftan@altera.com>
arch/nios2/kernel/cpuinfo.c