|
@@ -76,7 +76,15 @@ static LIST_HEAD(link_list);
|
|
#define POLICY_DEFAULT 0 /* BIOS default setting */
|
|
#define POLICY_DEFAULT 0 /* BIOS default setting */
|
|
#define POLICY_PERFORMANCE 1 /* high performance */
|
|
#define POLICY_PERFORMANCE 1 /* high performance */
|
|
#define POLICY_POWERSAVE 2 /* high power saving */
|
|
#define POLICY_POWERSAVE 2 /* high power saving */
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_PCIEASPM_PERFORMANCE
|
|
|
|
+static int aspm_policy = POLICY_PERFORMANCE;
|
|
|
|
+#elif defined CONFIG_PCIEASPM_POWERSAVE
|
|
|
|
+static int aspm_policy = POLICY_POWERSAVE;
|
|
|
|
+#else
|
|
static int aspm_policy;
|
|
static int aspm_policy;
|
|
|
|
+#endif
|
|
|
|
+
|
|
static const char *policy_str[] = {
|
|
static const char *policy_str[] = {
|
|
[POLICY_DEFAULT] = "default",
|
|
[POLICY_DEFAULT] = "default",
|
|
[POLICY_PERFORMANCE] = "performance",
|
|
[POLICY_PERFORMANCE] = "performance",
|