aboutsummaryrefslogtreecommitdiffstats
path: root/arch/nios2/kernel/cpuinfo.c
Commit message (Collapse)AuthorAge
* nios2: use of_property_read_boolLey Foon Tan2016-10-06
| | | | | | | | | | Use of_property_read_bool instead of open-coding it as fpcu_has. Convert the members of struct cpuinfo from u32 to bool accordingly as they are only used as boolean anyhow. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Acked-by: Ley Foon Tan <lftan@altera.com>
* nios2: cpuinfo: remove use of seq_printf return valueJoe Perches2015-04-15
| | | | | | | | | | | | | The seq_printf return value, because it's frequently misused, will eventually be converted to void. See: commit 1f33c41c03da ("seq_file: Rename seq_overflow() to seq_has_overflowed() and make public") Signed-off-by: Joe Perches <joe@perches.com> Cc: Ley Foon Tan <lftan@altera.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* nios2: Initialize cpuinfo.mmuWalter Goossens2014-12-30
| | | | | | | | This patch initializes the mmu field of the cpuinfo structure to the value supplied by the devicetree. Signed-off-by: Walter Goossens <waltergoossens@home.nl> Acked-by: Ley Foon Tan <lftan@altera.com>
* nios2: Use IS_ENABLED instead of #ifdefs to check config symbolsTobias Klauser2014-12-07
| | | | | | | | 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>
* nios2: Cpuinfo handlingLey Foon Tan2014-12-07
Signed-off-by: Ley Foon Tan <lftan@altera.com>