summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/fsl_pm.c
blob: 1d19b85cdaca43da00c1bb9d5d9f9ec76f55ac9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Freescale General Power Management Implementation
 *
 * Copyright 2014 Freescale Semiconductor, Inc.
 * Author: Wang Dongsheng <dongsheng.wang@freescale.com>
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2 of the License, or (at your
 * option) any later version.
 */

#include <linux/suspend.h>
#include <asm/fsl_pm.h>

static suspend_state_t pm_state;

void set_pm_suspend_state(suspend_state_t state)
{
	pm_state = state;
}

suspend_state_t pm_suspend_state(void)
{
	return pm_state;
}