Skip to content

Commit

Permalink
sh: cpuidle: Migrate off of hwblk API.
Browse files Browse the repository at this point in the history
Now that the hwblk API is unused and going away, migrate cpuidle off of
it. This is a pretty straightforward migration given that we weren't
really making use of the allowed mode overloading in the first place, so
simply default to regular sleep mode.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Nov 18, 2011
1 parent 62d3ba8 commit 4be8873
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion arch/sh/include/asm/hwblk.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ struct hwblk_info {
!defined(CONFIG_CPU_SUBTYPE_SH7724)
/* Should be defined by processor-specific code */
int arch_hwblk_init(void);
int arch_hwblk_sleep_mode(void);

int hwblk_register(struct hwblk_info *info);
int hwblk_init(void);
Expand Down
5 changes: 0 additions & 5 deletions arch/sh/kernel/cpu/hwblk.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@ int __init __weak arch_hwblk_init(void)
return 0;
}

int __weak arch_hwblk_sleep_mode(void)
{
return SUSP_SH_SLEEP;
}

int __init hwblk_init(void)
{
return arch_hwblk_init();
Expand Down
3 changes: 1 addition & 2 deletions arch/sh/kernel/cpu/shmobile/cpuidle.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <linux/export.h>
#include <asm/suspend.h>
#include <asm/uaccess.h>
#include <asm/hwblk.h>

static unsigned long cpuidle_mode[] = {
SUSP_SH_SLEEP, /* regular sleep mode */
Expand All @@ -29,7 +28,7 @@ static int cpuidle_sleep_enter(struct cpuidle_device *dev,
struct cpuidle_driver *drv,
int index)
{
unsigned long allowed_mode = arch_hwblk_sleep_mode();
unsigned long allowed_mode = SUSP_SH_SLEEP;
ktime_t before, after;
int requested_state = index;
int allowed_state;
Expand Down

0 comments on commit 4be8873

Please sign in to comment.