Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245263
b: refs/heads/master
c: 359c47e
h: refs/heads/master
i:
  245261: 4c7cdfa
  245259: abf23df
  245255: 5a450d0
  245247: ba530f0
v: v3
  • Loading branch information
Geert Uytterhoeven committed May 19, 2011
1 parent 683b289 commit 2db910b
Show file tree
Hide file tree
Showing 101 changed files with 874 additions and 1,065 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: e33ab8f275cf6e0e0bf6c9c44149de46222b36cc
refs/heads/master: 359c47ea71be21c1105ae474e8c90ec3e988bbdf
2 changes: 2 additions & 0 deletions trunk/Documentation/00-INDEX
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ sysrq.txt
- info on the magic SysRq key.
telephony/
- directory with info on telephony (e.g. voice over IP) support.
uml/
- directory with information about User Mode Linux.
unicode.txt
- info on the Unicode character/font mapping used in Linux.
unshare.txt
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Review checklist for kvm patches
2. Patches should be against kvm.git master branch.

3. If the patch introduces or modifies a new userspace API:
- the API must be documented in Documentation/virtual/kvm/api.txt
- the API must be documented in Documentation/kvm/api.txt
- the API must be discoverable using KVM_CHECK_EXTENSION

4. New state must include support for save/restore.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ Running Lguest:

- Run an lguest as root:

Documentation/virtual/lguest/lguest 64 vmlinux --tunnet=192.168.19.1 \
--block=rootfile root=/dev/vda
Documentation/lguest/lguest 64 vmlinux --tunnet=192.168.19.1 --block=rootfile root=/dev/vda

Explanation:
64: the amount of memory to use, in MB.
Expand Down
10 changes: 0 additions & 10 deletions trunk/Documentation/virtual/00-INDEX

This file was deleted.

4 changes: 2 additions & 2 deletions trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -3814,7 +3814,7 @@ M: Rusty Russell <rusty@rustcorp.com.au>
L: lguest@lists.ozlabs.org
W: http://lguest.ozlabs.org/
S: Odd Fixes
F: Documentation/virtual/lguest/
F: Documentation/lguest/
F: arch/x86/lguest/
F: drivers/lguest/
F: include/linux/lguest*.h
Expand Down Expand Up @@ -6632,7 +6632,7 @@ L: user-mode-linux-devel@lists.sourceforge.net
L: user-mode-linux-user@lists.sourceforge.net
W: http://user-mode-linux.sourceforge.net
S: Maintained
F: Documentation/virtual/uml/
F: Documentation/uml/
F: arch/um/
F: fs/hostfs/
F: fs/hppfs/
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/arm/mach-davinci/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ static int davinci_target(struct cpufreq_policy *policy,
if (freqs.old == freqs.new)
return ret;

dev_dbg(&cpufreq.dev, "transition: %u --> %u\n", freqs.old, freqs.new);
cpufreq_debug_printk(CPUFREQ_DEBUG_DRIVER,
dev_driver_string(cpufreq.dev),
"transition: %u --> %u\n", freqs.old, freqs.new);

ret = cpufreq_frequency_table_target(policy, pdata->freq_table,
freqs.new, relation, &idx);
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/blackfin/mach-common/dpmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

#define DRIVER_NAME "bfin dpmc"

#define dprintk(msg...) \
cpufreq_debug_printk(CPUFREQ_DEBUG_DRIVER, DRIVER_NAME, msg)

struct bfin_dpmc_platform_data *pdata;

/**
Expand Down
44 changes: 23 additions & 21 deletions trunk/arch/ia64/kernel/cpufreq/acpi-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <linux/acpi.h>
#include <acpi/processor.h>

#define dprintk(msg...) cpufreq_debug_printk(CPUFREQ_DEBUG_DRIVER, "acpi-cpufreq", msg)

MODULE_AUTHOR("Venkatesh Pallipadi");
MODULE_DESCRIPTION("ACPI Processor P-States Driver");
MODULE_LICENSE("GPL");
Expand All @@ -45,12 +47,12 @@ processor_set_pstate (
{
s64 retval;

pr_debug("processor_set_pstate\n");
dprintk("processor_set_pstate\n");

retval = ia64_pal_set_pstate((u64)value);

if (retval) {
pr_debug("Failed to set freq to 0x%x, with error 0x%lx\n",
dprintk("Failed to set freq to 0x%x, with error 0x%lx\n",
value, retval);
return -ENODEV;
}
Expand All @@ -65,14 +67,14 @@ processor_get_pstate (
u64 pstate_index = 0;
s64 retval;

pr_debug("processor_get_pstate\n");
dprintk("processor_get_pstate\n");

retval = ia64_pal_get_pstate(&pstate_index,
PAL_GET_PSTATE_TYPE_INSTANT);
*value = (u32) pstate_index;

if (retval)
pr_debug("Failed to get current freq with "
dprintk("Failed to get current freq with "
"error 0x%lx, idx 0x%x\n", retval, *value);

return (int)retval;
Expand All @@ -88,7 +90,7 @@ extract_clock (
{
unsigned long i;

pr_debug("extract_clock\n");
dprintk("extract_clock\n");

for (i = 0; i < data->acpi_data.state_count; i++) {
if (value == data->acpi_data.states[i].status)
Expand All @@ -108,7 +110,7 @@ processor_get_freq (
cpumask_t saved_mask;
unsigned long clock_freq;

pr_debug("processor_get_freq\n");
dprintk("processor_get_freq\n");

saved_mask = current->cpus_allowed;
set_cpus_allowed_ptr(current, cpumask_of(cpu));
Expand Down Expand Up @@ -146,7 +148,7 @@ processor_set_freq (
cpumask_t saved_mask;
int retval;

pr_debug("processor_set_freq\n");
dprintk("processor_set_freq\n");

saved_mask = current->cpus_allowed;
set_cpus_allowed_ptr(current, cpumask_of(cpu));
Expand All @@ -157,16 +159,16 @@ processor_set_freq (

if (state == data->acpi_data.state) {
if (unlikely(data->resume)) {
pr_debug("Called after resume, resetting to P%d\n", state);
dprintk("Called after resume, resetting to P%d\n", state);
data->resume = 0;
} else {
pr_debug("Already at target state (P%d)\n", state);
dprintk("Already at target state (P%d)\n", state);
retval = 0;
goto migrate_end;
}
}

pr_debug("Transitioning from P%d to P%d\n",
dprintk("Transitioning from P%d to P%d\n",
data->acpi_data.state, state);

/* cpufreq frequency struct */
Expand All @@ -184,7 +186,7 @@ processor_set_freq (

value = (u32) data->acpi_data.states[state].control;

pr_debug("Transitioning to state: 0x%08x\n", value);
dprintk("Transitioning to state: 0x%08x\n", value);

ret = processor_set_pstate(value);
if (ret) {
Expand Down Expand Up @@ -217,7 +219,7 @@ acpi_cpufreq_get (
{
struct cpufreq_acpi_io *data = acpi_io_data[cpu];

pr_debug("acpi_cpufreq_get\n");
dprintk("acpi_cpufreq_get\n");

return processor_get_freq(data, cpu);
}
Expand All @@ -233,7 +235,7 @@ acpi_cpufreq_target (
unsigned int next_state = 0;
unsigned int result = 0;

pr_debug("acpi_cpufreq_setpolicy\n");
dprintk("acpi_cpufreq_setpolicy\n");

result = cpufreq_frequency_table_target(policy,
data->freq_table, target_freq, relation, &next_state);
Expand All @@ -253,7 +255,7 @@ acpi_cpufreq_verify (
unsigned int result = 0;
struct cpufreq_acpi_io *data = acpi_io_data[policy->cpu];

pr_debug("acpi_cpufreq_verify\n");
dprintk("acpi_cpufreq_verify\n");

result = cpufreq_frequency_table_verify(policy,
data->freq_table);
Expand All @@ -271,7 +273,7 @@ acpi_cpufreq_cpu_init (
struct cpufreq_acpi_io *data;
unsigned int result = 0;

pr_debug("acpi_cpufreq_cpu_init\n");
dprintk("acpi_cpufreq_cpu_init\n");

data = kzalloc(sizeof(struct cpufreq_acpi_io), GFP_KERNEL);
if (!data)
Expand All @@ -286,7 +288,7 @@ acpi_cpufreq_cpu_init (

/* capability check */
if (data->acpi_data.state_count <= 1) {
pr_debug("No P-States\n");
dprintk("No P-States\n");
result = -ENODEV;
goto err_unreg;
}
Expand All @@ -295,7 +297,7 @@ acpi_cpufreq_cpu_init (
ACPI_ADR_SPACE_FIXED_HARDWARE) ||
(data->acpi_data.status_register.space_id !=
ACPI_ADR_SPACE_FIXED_HARDWARE)) {
pr_debug("Unsupported address space [%d, %d]\n",
dprintk("Unsupported address space [%d, %d]\n",
(u32) (data->acpi_data.control_register.space_id),
(u32) (data->acpi_data.status_register.space_id));
result = -ENODEV;
Expand Down Expand Up @@ -346,7 +348,7 @@ acpi_cpufreq_cpu_init (
"activated.\n", cpu);

for (i = 0; i < data->acpi_data.state_count; i++)
pr_debug(" %cP%d: %d MHz, %d mW, %d uS, %d uS, 0x%x 0x%x\n",
dprintk(" %cP%d: %d MHz, %d mW, %d uS, %d uS, 0x%x 0x%x\n",
(i == data->acpi_data.state?'*':' '), i,
(u32) data->acpi_data.states[i].core_frequency,
(u32) data->acpi_data.states[i].power,
Expand Down Expand Up @@ -381,7 +383,7 @@ acpi_cpufreq_cpu_exit (
{
struct cpufreq_acpi_io *data = acpi_io_data[policy->cpu];

pr_debug("acpi_cpufreq_cpu_exit\n");
dprintk("acpi_cpufreq_cpu_exit\n");

if (data) {
cpufreq_frequency_table_put_attr(policy->cpu);
Expand Down Expand Up @@ -416,7 +418,7 @@ static struct cpufreq_driver acpi_cpufreq_driver = {
static int __init
acpi_cpufreq_init (void)
{
pr_debug("acpi_cpufreq_init\n");
dprintk("acpi_cpufreq_init\n");

return cpufreq_register_driver(&acpi_cpufreq_driver);
}
Expand All @@ -425,7 +427,7 @@ acpi_cpufreq_init (void)
static void __exit
acpi_cpufreq_exit (void)
{
pr_debug("acpi_cpufreq_exit\n");
dprintk("acpi_cpufreq_exit\n");

cpufreq_unregister_driver(&acpi_cpufreq_driver);
return;
Expand Down
6 changes: 2 additions & 4 deletions trunk/arch/m68k/include/asm/bitops_mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ static inline int find_next_zero_bit(const unsigned long *vaddr, int size,
offset += 32;
}
/* No zero yet, search remaining full bytes for a zero */
res = find_first_zero_bit(p, size - ((long)p - (long)vaddr) * 8);
return offset + res;
return offset + find_first_zero_bit(p, size - offset);
}

static inline int find_first_bit(const unsigned long *vaddr, unsigned size)
Expand Down Expand Up @@ -267,8 +266,7 @@ static inline int find_next_bit(const unsigned long *vaddr, int size,
offset += 32;
}
/* No one yet, search remaining full bytes for a one */
res = find_first_bit(p, size - ((long)p - (long)vaddr) * 8);
return offset + res;
return offset + find_first_bit(p, size - offset);
}

/*
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/s390/include/asm/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ void kernel_map_pages(struct page *page, int numpages, int enable);
int set_memory_ro(unsigned long addr, int numpages);
int set_memory_rw(unsigned long addr, int numpages);
int set_memory_nx(unsigned long addr, int numpages);
int set_memory_x(unsigned long addr, int numpages);

#endif /* _S390_CACHEFLUSH_H */
5 changes: 0 additions & 5 deletions trunk/arch/s390/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,3 @@ int set_memory_nx(unsigned long addr, int numpages)
return 0;
}
EXPORT_SYMBOL_GPL(set_memory_nx);

int set_memory_x(unsigned long addr, int numpages)
{
return 0;
}
2 changes: 1 addition & 1 deletion trunk/arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1848,7 +1848,7 @@ config APM_ALLOW_INTS

endif # APM

source "drivers/cpufreq/Kconfig"
source "arch/x86/kernel/cpu/cpufreq/Kconfig"

source "drivers/cpuidle/Kconfig"

Expand Down
5 changes: 2 additions & 3 deletions trunk/arch/x86/include/asm/xen/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ extern bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
extern unsigned long set_phys_range_identity(unsigned long pfn_s,
unsigned long pfn_e);

extern int m2p_add_override(unsigned long mfn, struct page *page,
bool clear_pte);
extern int m2p_remove_override(struct page *page, bool clear_pte);
extern int m2p_add_override(unsigned long mfn, struct page *page);
extern int m2p_remove_override(struct page *page);
extern struct page *m2p_find_override(unsigned long mfn);
extern unsigned long m2p_find_override_pfn(unsigned long mfn, unsigned long pfn);

Expand Down
16 changes: 0 additions & 16 deletions trunk/arch/x86/include/asm/xen/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,10 @@ static inline int pci_xen_hvm_init(void)
#endif
#if defined(CONFIG_XEN_DOM0)
void __init xen_setup_pirqs(void);
int xen_find_device_domain_owner(struct pci_dev *dev);
int xen_register_device_domain_owner(struct pci_dev *dev, uint16_t domain);
int xen_unregister_device_domain_owner(struct pci_dev *dev);
#else
static inline void __init xen_setup_pirqs(void)
{
}
static inline int xen_find_device_domain_owner(struct pci_dev *dev)
{
return -1;
}
static inline int xen_register_device_domain_owner(struct pci_dev *dev,
uint16_t domain)
{
return -1;
}
static inline int xen_unregister_device_domain_owner(struct pci_dev *dev)
{
return -1;
}
#endif

#if defined(CONFIG_PCI_MSI)
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/x86/kernel/cpu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ obj-$(CONFIG_PERF_EVENTS) += perf_event.o

obj-$(CONFIG_X86_MCE) += mcheck/
obj-$(CONFIG_MTRR) += mtrr/
obj-$(CONFIG_CPU_FREQ) += cpufreq/

obj-$(CONFIG_X86_LOCAL_APIC) += perfctr-watchdog.o

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
#
# x86 CPU Frequency scaling drivers
# CPU Frequency scaling
#

menu "CPU Frequency scaling"

source "drivers/cpufreq/Kconfig"

if CPU_FREQ

comment "CPUFreq processor drivers"

config X86_PCC_CPUFREQ
tristate "Processor Clocking Control interface driver"
depends on ACPI && ACPI_PROCESSOR
Expand Down Expand Up @@ -253,3 +261,6 @@ config X86_SPEEDSTEP_RELAXED_CAP_CHECK
option lets the probing code bypass some of those checks if the
parameter "relaxed_check=1" is passed to the module.

endif # CPU_FREQ

endmenu
Loading

0 comments on commit 2db910b

Please sign in to comment.