forked from len0rd/rockbox
HAVE_ADJUSTABLE_CPU_FREQ isn't defined for simulators, so we don't have to check for simulator builds before using cpu_boost()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9579 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f03e0530c3
commit
65293be9bf
1 changed files with 4 additions and 2 deletions
|
@ -838,11 +838,13 @@ void sudoku_generate(struct sudoku_state_t* state)
|
||||||
display_board(state);
|
display_board(state);
|
||||||
rb->splash(0, true, "Generating...");
|
rb->splash(0, true, "Generating...");
|
||||||
|
|
||||||
#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
|
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||||
rb->cpu_boost(true);
|
rb->cpu_boost(true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
sudoku_generate_board(state,&difficulty);
|
sudoku_generate_board(state,&difficulty);
|
||||||
#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
|
|
||||||
|
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||||
rb->cpu_boost(false);
|
rb->cpu_boost(false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue