lkml.org 
[lkml]   [2007]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 2/4] Expose Power Management Policy option to users
Kristen Carlson Accardi wrote:
> @@ -42,6 +42,16 @@ enum scsi_eh_timer_return {
> EH_RESET_TIMER,
> };
>
> +/*
> + * shost pm policy: If you alter this, you also need to alter scsi_sysfs.c
> + * (for the ascii descriptions)
> + */
> +enum scsi_host_link_pm {
> + SHOST_NOT_AVAILABLE,
> + SHOST_MIN_POWER,
> + SHOST_MAX_PERFORMANCE,
> + SHOST_MEDIUM_POWER,
> +};
>
> struct scsi_host_template {
> struct module *module;
> @@ -345,6 +355,12 @@ struct scsi_host_template {
> int (*suspend)(struct scsi_device *, pm_message_t state);
>
> /*
> + * link power management support
> + */
> + int (*set_link_pm_policy)(struct Scsi_Host *, enum scsi_host_link_pm);
> + enum scsi_host_link_pm default_link_pm_policy;
> +
> + /*
> * Name of proc directory
> */
> char *proc_name;
> @@ -642,6 +658,7 @@ struct Scsi_Host {
>
>
> enum scsi_host_state shost_state;
> + enum scsi_host_link_pm shost_link_pm_policy;
>
> /* ldm bits */
> struct device shost_gendev;


Any chance the SCSI peeps could ACK this, and then let me include it in
the ALPM patchset in the libata tree?

Jeff


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-07-30 18:35    [W:0.274 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site