Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127620
b: refs/heads/master
c: 3cab7fd
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Garrett authored and Linus Torvalds committed Jan 8, 2009
1 parent ec87a69 commit 0d848eb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f06295b44c296c8fb08823a3118468ae343b60f2
refs/heads/master: 3cab7fd964916a5474dcaeb23b6723fbfb34cc66
9 changes: 5 additions & 4 deletions trunk/drivers/firmware/dcdbas.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,11 @@ static ssize_t host_control_on_shutdown_store(struct device *dev,
}

/**
* smi_request: generate SMI request
* dcdbas_smi_request: generate SMI request
*
* Called with smi_data_lock.
*/
static int smi_request(struct smi_cmd *smi_cmd)
int dcdbas_smi_request(struct smi_cmd *smi_cmd)
{
cpumask_t old_mask;
int ret = 0;
Expand Down Expand Up @@ -309,14 +309,14 @@ static ssize_t smi_request_store(struct device *dev,
switch (val) {
case 2:
/* Raw SMI */
ret = smi_request(smi_cmd);
ret = dcdbas_smi_request(smi_cmd);
if (!ret)
ret = count;
break;
case 1:
/* Calling Interface SMI */
smi_cmd->ebx = (u32) virt_to_phys(smi_cmd->command_buffer);
ret = smi_request(smi_cmd);
ret = dcdbas_smi_request(smi_cmd);
if (!ret)
ret = count;
break;
Expand All @@ -333,6 +333,7 @@ static ssize_t smi_request_store(struct device *dev,
mutex_unlock(&smi_data_lock);
return ret;
}
EXPORT_SYMBOL(dcdbas_smi_request);

/**
* host_control_smi: generate host control SMI
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/firmware/dcdbas.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,7 @@ struct apm_cmd {
} __attribute__ ((packed)) parameters;
} __attribute__ ((packed));

int dcdbas_smi_request(struct smi_cmd *smi_cmd);

#endif /* _DCDBAS_H_ */

0 comments on commit 0d848eb

Please sign in to comment.