Re: [PATCH] ACPI/Processor: Rework processor throttling with work_on_cpu()

2014-02-25 Thread Lan Tianyu
On 2014年02月26日 09:23, Rafael J. Wysocki wrote: > On Friday, February 21, 2014 01:35:45 PM Lan Tianyu wrote: >> acpi_processor_set_throttling() uses set_cpus_allowed_ptr() to make >> sure struct acpi_processor->acpi_processor_set_throttling() callback >> run on associated cpu. But the function

Re: [PATCH] ACPI/Processor: Rework processor throttling with work_on_cpu()

2014-02-25 Thread Rafael J. Wysocki
On Friday, February 21, 2014 01:35:45 PM Lan Tianyu wrote: > acpi_processor_set_throttling() uses set_cpus_allowed_ptr() to make > sure struct acpi_processor->acpi_processor_set_throttling() callback > run on associated cpu. But the function maybe called in a worker which > has been bound to a

Re: [PATCH] ACPI/Processor: Rework processor throttling with work_on_cpu()

2014-02-25 Thread Rafael J. Wysocki
On Friday, February 21, 2014 01:35:45 PM Lan Tianyu wrote: acpi_processor_set_throttling() uses set_cpus_allowed_ptr() to make sure struct acpi_processor-acpi_processor_set_throttling() callback run on associated cpu. But the function maybe called in a worker which has been bound to a cpu. The

Re: [PATCH] ACPI/Processor: Rework processor throttling with work_on_cpu()

2014-02-25 Thread Lan Tianyu
On 2014年02月26日 09:23, Rafael J. Wysocki wrote: On Friday, February 21, 2014 01:35:45 PM Lan Tianyu wrote: acpi_processor_set_throttling() uses set_cpus_allowed_ptr() to make sure struct acpi_processor-acpi_processor_set_throttling() callback run on associated cpu. But the function maybe called

Re: [PATCH] ACPI/Processor: Rework processor throttling with work_on_cpu()

2014-02-24 Thread Lan Tianyu
On 2014年02月22日 01:07, Jiri Olsa wrote: > On Fri, Feb 21, 2014 at 11:06:30AM +0100, Jiri Olsa wrote: >> On Fri, Feb 21, 2014 at 01:35:45PM +0800, Lan Tianyu wrote: >>> acpi_processor_set_throttling() uses set_cpus_allowed_ptr() to make >>> sure struct acpi_processor->acpi_processor_set_throttling()

Re: [PATCH] ACPI/Processor: Rework processor throttling with work_on_cpu()

2014-02-24 Thread Lan Tianyu
On 2014年02月22日 01:07, Jiri Olsa wrote: On Fri, Feb 21, 2014 at 11:06:30AM +0100, Jiri Olsa wrote: On Fri, Feb 21, 2014 at 01:35:45PM +0800, Lan Tianyu wrote: acpi_processor_set_throttling() uses set_cpus_allowed_ptr() to make sure struct acpi_processor-acpi_processor_set_throttling() callback

Re: [PATCH] ACPI/Processor: Rework processor throttling with work_on_cpu()

2014-02-21 Thread Jiri Olsa
On Fri, Feb 21, 2014 at 11:06:30AM +0100, Jiri Olsa wrote: > On Fri, Feb 21, 2014 at 01:35:45PM +0800, Lan Tianyu wrote: > > acpi_processor_set_throttling() uses set_cpus_allowed_ptr() to make > > sure struct acpi_processor->acpi_processor_set_throttling() callback > > run on associated cpu. But

Re: [PATCH] ACPI/Processor: Rework processor throttling with work_on_cpu()

2014-02-21 Thread Jiri Olsa
On Fri, Feb 21, 2014 at 01:35:45PM +0800, Lan Tianyu wrote: > acpi_processor_set_throttling() uses set_cpus_allowed_ptr() to make > sure struct acpi_processor->acpi_processor_set_throttling() callback > run on associated cpu. But the function maybe called in a worker which > has been bound to a

Re: [PATCH] ACPI/Processor: Rework processor throttling with work_on_cpu()

2014-02-21 Thread Jiri Olsa
On Fri, Feb 21, 2014 at 01:35:45PM +0800, Lan Tianyu wrote: acpi_processor_set_throttling() uses set_cpus_allowed_ptr() to make sure struct acpi_processor-acpi_processor_set_throttling() callback run on associated cpu. But the function maybe called in a worker which has been bound to a cpu.

Re: [PATCH] ACPI/Processor: Rework processor throttling with work_on_cpu()

2014-02-21 Thread Jiri Olsa
On Fri, Feb 21, 2014 at 11:06:30AM +0100, Jiri Olsa wrote: On Fri, Feb 21, 2014 at 01:35:45PM +0800, Lan Tianyu wrote: acpi_processor_set_throttling() uses set_cpus_allowed_ptr() to make sure struct acpi_processor-acpi_processor_set_throttling() callback run on associated cpu. But the

[PATCH] ACPI/Processor: Rework processor throttling with work_on_cpu()

2014-02-20 Thread Lan Tianyu
acpi_processor_set_throttling() uses set_cpus_allowed_ptr() to make sure struct acpi_processor->acpi_processor_set_throttling() callback run on associated cpu. But the function maybe called in a worker which has been bound to a cpu. The patch is to replace set_cpus_allowed_ptr() with

[PATCH] ACPI/Processor: Rework processor throttling with work_on_cpu()

2014-02-20 Thread Lan Tianyu
acpi_processor_set_throttling() uses set_cpus_allowed_ptr() to make sure struct acpi_processor-acpi_processor_set_throttling() callback run on associated cpu. But the function maybe called in a worker which has been bound to a cpu. The patch is to replace set_cpus_allowed_ptr() with work_on_cpu().