diff options
author | Dave Chapman <dave@dchapman.com> | 2006-04-09 14:20:14 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-04-09 14:20:14 +0000 |
commit | 65293be9bfa071947a11d0c51bff31579fd43a74 (patch) | |
tree | 5293ed391d1646fbc9317abff294aa64ca07075a /apps/plugins/sudoku/sudoku.c | |
parent | f03e0530c3d7365f3872659cacfb6ba7b02184d2 (diff) |
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
Diffstat (limited to 'apps/plugins/sudoku/sudoku.c')
-rw-r--r-- | apps/plugins/sudoku/sudoku.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/sudoku/sudoku.c b/apps/plugins/sudoku/sudoku.c index 7fbeef374d..e2b70987d0 100644 --- a/apps/plugins/sudoku/sudoku.c +++ b/apps/plugins/sudoku/sudoku.c @@ -838,11 +838,13 @@ void sudoku_generate(struct sudoku_state_t* state) display_board(state); rb->splash(0, true, "Generating..."); -#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ) +#ifdef HAVE_ADJUSTABLE_CPU_FREQ rb->cpu_boost(true); #endif + sudoku_generate_board(state,&difficulty); -#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ) + +#ifdef HAVE_ADJUSTABLE_CPU_FREQ rb->cpu_boost(false); #endif |