summaryrefslogtreecommitdiff
path: root/apps/plugins/text_viewer/tv_bookmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/text_viewer/tv_bookmark.c')
-rw-r--r--apps/plugins/text_viewer/tv_bookmark.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/plugins/text_viewer/tv_bookmark.c b/apps/plugins/text_viewer/tv_bookmark.c
index 807c3e9..0f5d58b 100644
--- a/apps/plugins/text_viewer/tv_bookmark.c
+++ b/apps/plugins/text_viewer/tv_bookmark.c
@@ -103,8 +103,16 @@ static int tv_change_preferences(const struct tv_preferences *oldp)
if (oldp)
{
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+ rb->cpu_boost(true);
+#endif
+
for (i = 0; i < bookmark_count; i++)
tv_convert_fpos(bookmarks[i].pos.file_pos, &bookmarks[i].pos);
+
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+ rb->cpu_boost(false);
+#endif
}
return TV_CALLBACK_OK;
}
@@ -249,7 +257,15 @@ void tv_select_bookmark(void)
if (preferences->vertical_scroll_mode == VS_PAGE)
select_pos.line = 0;
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+ rb->cpu_boost(true);
+#endif
+
tv_move_screen(select_pos.page, select_pos.line, SEEK_SET);
+
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+ rb->cpu_boost(false);
+#endif
}
/* serialize or deserialize of the bookmark array */