mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
Merge branches 'release', 'idle', 'redhat-bugzilla-436589', 'sbs' and 'video' into release
This commit is contained in:
commit
86d9fc1293
7 changed files with 33 additions and 19 deletions
|
|
@ -1487,7 +1487,6 @@ static int acpi_idle_enter_simple(struct cpuidle_device *dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
acpi_unlazy_tlb(smp_processor_id());
|
||||
/*
|
||||
* Must be done before busmaster disable as we might need to
|
||||
* access HPET !
|
||||
|
|
@ -1577,6 +1576,8 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
acpi_unlazy_tlb(smp_processor_id());
|
||||
|
||||
/* Tell the scheduler that we are going deep-idle: */
|
||||
sched_clock_idle_sleep_event();
|
||||
/*
|
||||
|
|
@ -1692,7 +1693,9 @@ static int acpi_processor_setup_cpuidle(struct acpi_processor *pr)
|
|||
switch (cx->type) {
|
||||
case ACPI_STATE_C1:
|
||||
state->flags |= CPUIDLE_FLAG_SHALLOW;
|
||||
state->flags |= CPUIDLE_FLAG_TIME_VALID;
|
||||
if (cx->entry_method == ACPI_CSTATE_FFH)
|
||||
state->flags |= CPUIDLE_FLAG_TIME_VALID;
|
||||
|
||||
state->enter = acpi_idle_enter_c1;
|
||||
dev->safe_state = state;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -130,7 +130,6 @@ static int acpi_smbus_transaction(struct acpi_smb_hc *hc, u8 protocol,
|
|||
goto end;
|
||||
}
|
||||
smb_hc_write(hc, ACPI_SMB_COMMAND, command);
|
||||
smb_hc_write(hc, ACPI_SMB_COMMAND, command);
|
||||
if (!(protocol & 0x01)) {
|
||||
smb_hc_write(hc, ACPI_SMB_BLOCK_COUNT, length);
|
||||
for (i = 0; i < length; ++i)
|
||||
|
|
|
|||
|
|
@ -39,20 +39,26 @@ static int create_modalias(struct acpi_device *acpi_dev, char *modalias,
|
|||
int size)
|
||||
{
|
||||
int len;
|
||||
int count;
|
||||
|
||||
if (!acpi_dev->flags.hardware_id)
|
||||
if (!acpi_dev->flags.hardware_id && !acpi_dev->flags.compatible_ids)
|
||||
return -ENODEV;
|
||||
|
||||
len = snprintf(modalias, size, "acpi:%s:",
|
||||
acpi_dev->pnp.hardware_id);
|
||||
if (len < 0 || len >= size)
|
||||
return -EINVAL;
|
||||
len = snprintf(modalias, size, "acpi:");
|
||||
size -= len;
|
||||
|
||||
if (acpi_dev->flags.hardware_id) {
|
||||
count = snprintf(&modalias[len], size, "%s:",
|
||||
acpi_dev->pnp.hardware_id);
|
||||
if (count < 0 || count >= size)
|
||||
return -EINVAL;
|
||||
len += count;
|
||||
size -= count;
|
||||
}
|
||||
|
||||
if (acpi_dev->flags.compatible_ids) {
|
||||
struct acpi_compatible_id_list *cid_list;
|
||||
int i;
|
||||
int count;
|
||||
|
||||
cid_list = acpi_dev->pnp.cid_list;
|
||||
for (i = 0; i < cid_list->count; i++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue