Thursday, January 28, 2010

linux.kernel - 26 new messages in 18 topics - digest

linux.kernel
http://groups.google.com/group/linux.kernel?hl=en

linux.kernel@googlegroups.com

Today's topics:

* perfevents: Added performance event structure definition, export event
description in the debugfs "perf_events_platform" file - 2 messages, 2 authors
http://groups.google.com/group/linux.kernel/t/e025bcba6c770351?hl=en
* perf_event: circular lock dependency - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/1239a9c16a6fa388?hl=en
* kernel BUG at fs/dcache.c:670 using dmraid - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/4549101f87598bf7?hl=en
* - Fix unmap_vma() bug related to mmu_notifiers - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/506397f77de38486?hl=en
* mmotm 2010-01-28-01-36 uploaded - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/1048092afd321a0f?hl=en
* regulator: Convert fixed voltage regulator to use enable_time() - 1 messages,
1 author
http://groups.google.com/group/linux.kernel/t/5f6a0badb5853962?hl=en
* Add type of locks to lock trace events - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/b401f2c4371a72bd?hl=en
* [PATCH 1/2 v2] perf_event: cleanup for event profile buffer operation - 1
messages, 1 author
http://groups.google.com/group/linux.kernel/t/527b4b036d781f53?hl=en
* sysctl clean up vm related variable declarations - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/6ace9fc4debea132?hl=en
* UIO / of_genirq driver - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/fb471cfd1c8b57f0?hl=en
* PCI host bridge windows ignored (works with pci=use_crs) - 1 messages, 1
author
http://groups.google.com/group/linux.kernel/t/8dc02ff411331726?hl=en
* perf_events: support for uncore a.k.a. nest units - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/c5bab07b177468d1?hl=en
* 2.6.32.5 regression: page allocation failure. order:1, - 1 messages, 1
author
http://groups.google.com/group/linux.kernel/t/a0015010e6b7ea14?hl=en
* bio too big - in nested raid setup - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/67c6a33e58948687?hl=en
* Return proper code to notifier chain in hw_breakpoint_handler - 2 messages,
1 author
http://groups.google.com/group/linux.kernel/t/5bcda265a2b85f32?hl=en
* Improvements for hw_breakpoint_handler() - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/d88f905b456ef4b1?hl=en
* PROBLEM: reproducible crash KVM+nf_conntrack all recent 2.6 kernels - 1
messages, 1 author
http://groups.google.com/group/linux.kernel/t/b7334ab84a84dcdb?hl=en
* iommu-api: Rename ->{un}map function pointers to ->{un}map_range - 7
messages, 1 author
http://groups.google.com/group/linux.kernel/t/bc9cc8ebd24768ad?hl=en

==============================================================================
TOPIC: perfevents: Added performance event structure definition, export event
description in the debugfs "perf_events_platform" file
http://groups.google.com/group/linux.kernel/t/e025bcba6c770351?hl=en
==============================================================================

== 1 of 2 ==
Date: Thurs, Jan 28 2010 1:40 am
From: Tomasz Fujak


Signed-off-by: Tomasz Fujak <t.fujak@samsung.com>
Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Pawel Osciak <p.osciak@samsung.com>
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>

---
include/linux/perf_event.h | 19 +++++++++
kernel/perf_event.c | 92 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 111 insertions(+), 0 deletions(-)

diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index c66b34f..b50e2b8 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -458,6 +458,12 @@ enum perf_callchain_context {

#define PERF_MAX_STACK_DEPTH 255

+#define PERF_EVENT_RAW_BIT (1ULL << 63)
+#define PERF_EVENT_RAW_TO_CONFIG(_val) ((_val) | PERF_EVENT_RAW_BIT)
+#define PERF_EVENT_CONFIG_TO_RAW(_val) ((_val) & ~PERF_EVENT_RAW_BIT)
+#define PERF_EVENT_IS_RAW(_val) ((_val) & PERF_EVENT_RAW_BIT)
+
+
struct perf_callchain_entry {
__u64 nr;
__u64 ip[PERF_MAX_STACK_DEPTH];
@@ -554,6 +560,19 @@ struct perf_mmap_data {
void *data_pages[0];
};

+struct perf_event_description {
+ struct list_head list;
+
+ /* type : 1, subsystem [0..7], id [56..63]*/
+ __u64 config;
+ __u64 min_value; /* min. wakeup period */
+ __u64 max_value; /* max. wakeup period */
+ __u32 flags; /* ??? */
+ __u32 reserved[3];
+ char *name;
+ char *description;
+};
+
struct perf_pending_entry {
struct perf_pending_entry *next;
void (*func)(struct perf_pending_entry *);
diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index 603c0d8..dc68f0b 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -31,6 +31,9 @@
#include <linux/ftrace_event.h>
#include <linux/hw_breakpoint.h>

+#include <linux/debugfs.h>
+#include <linux/seq_file.h>
+
#include <asm/irq_regs.h>

/*
@@ -99,6 +102,10 @@ void __weak hw_perf_enable(void) { barrier(); }
void __weak hw_perf_event_setup(int cpu) { barrier(); }
void __weak hw_perf_event_setup_online(int cpu) { barrier(); }

+static LIST_HEAD(perf_event_empty);
+
+const struct list_head __weak *perf_events_platform;
+
int __weak
hw_perf_group_sched_in(struct perf_event *group_leader,
struct perf_cpu_context *cpuctx,
@@ -5333,6 +5340,83 @@ perf_set_overcommit(struct sysdev_class *class, const char *buf, size_t count)
return count;
}

+static void *platevent_seq_start(struct seq_file *s, loff_t *pos)
+{
+ struct list_head *spos = NULL;
+
+ if (perf_events_platform) {
+ loff_t count = *pos;
+ struct list_head *curr;
+
+ list_for_each(curr, perf_events_platform)
+ if (!count--)
+ break;
+
+ if (curr != perf_events_platform) {
+ s->private = perf_events_platform;
+ spos = curr;
+ }
+ }
+
+ return spos;
+}
+
+static void *platevent_seq_next(struct seq_file *s, void *v, loff_t *pos)
+{
+ struct list_head *curr = (struct list_head *)v;
+ struct list_head *head = (struct list_head *)s->private;
+
+ if (list_is_last(curr, head))
+ return NULL;
+
+ ++(*pos);
+ return curr->next;
+}
+
+static void platevent_seq_stop(struct seq_file *s, void *v)
+{
+ kfree(v);
+}
+
+static int platevent_seq_show(struct seq_file *s, void *v)
+{
+ struct list_head *curr = (struct list_head *)v;
+
+ if (curr) {
+ struct perf_event_description *entry = list_entry(curr,
+ struct perf_event_description, list);
+
+ if (PERF_EVENT_IS_RAW(entry->config))
+ seq_printf(s, "0x%llx\t%s\t%lld-%lld\t%s\n",
+ PERF_EVENT_CONFIG_TO_RAW(entry->config),
+ entry->name, entry->min_value,
+ entry->max_value, entry->description);
+ }
+
+ return 0;
+}
+
+static const struct seq_operations platevent_seq_ops = {
+ .start = platevent_seq_start,
+ .next = platevent_seq_next,
+ .stop = platevent_seq_stop,
+ .show = platevent_seq_show
+};
+
+static int platevent_open(struct inode *inode, struct file *file)
+{
+ return seq_open(file, &platevent_seq_ops);
+};
+
+static const struct file_operations platevent_file_ops = {
+ .owner = THIS_MODULE,
+ .open = platevent_open,
+ .read = seq_read,
+ .llseek = seq_lseek,
+ .release = seq_release
+};
+
+
static SYSDEV_CLASS_ATTR(
reserve_percpu,
0644,
@@ -5358,8 +5442,16 @@ static struct attribute_group perfclass_attr_group = {
.name = "perf_events",
};

+
static int __init perf_event_sysfs_init(void)
{
+ struct dentry *dentry;
+
+ dentry = debugfs_create_file("perf_events_platform", 0444, NULL,
+ NULL, &platevent_file_ops);
+ if (!dentry)
+ printk(KERN_WARNING "Cannot create debugfs entry 'perf_events_platform'\n");
+
return sysfs_create_group(&cpu_sysdev_class.kset.kobj,
&perfclass_attr_group);
}
--
1.5.4.3

--
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/


== 2 of 2 ==
Date: Thurs, Jan 28 2010 3:00 am
From: Peter Zijlstra


On Thu, 2010-01-28 at 10:34 +0100, Tomasz Fujak wrote:
> Human readable description support for performance events v2. With perf support included.
> Changes from v1:
> - applied on top of latest perf_event/ARM (5899/1 - 5903/1)
> - moved to debugfs, now based on seq_file
> - reads one line at a time, memory overallocation fixed [perf]

You can keep sending these patches, but I'll keep ignoring them
eventually adding you to the /dev/null redirect.

--
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/

==============================================================================
TOPIC: perf_event: circular lock dependency
http://groups.google.com/group/linux.kernel/t/1239a9c16a6fa388?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, Jan 28 2010 1:50 am
From: Stephane Eranian


On Thu, Jan 28, 2010 at 10:32 AM, Peter Zijlstra <peterz@infradead.org> wrote:
> On Thu, 2010-01-28 at 10:19 +0100, Stephane Eranian wrote:
>
>> On Intel Core, one of my test programs generate this kind of
>> warning when it unmaps the sampling buffer after it has closed
>> the events fds.
>
>> [ 1729.441066] the existing dependency chain (in reverse order) is:
>> [ 1729.441092]
>> [ 1729.441093] -> #1 (&mm->mmap_sem){++++++}:
>> [ 1729.441123]        [<ffffffff81077f97>] validate_chain+0xc17/0x1360
>> [ 1729.441151]        [<ffffffff81078a53>] __lock_acquire+0x373/0xb30
>> [ 1729.441170]        [<ffffffff810792ac>] lock_acquire+0x9c/0x100
>> [ 1729.441189]        [<ffffffff810e74a4>] might_fault+0x84/0xb0
>> [ 1729.441207]        [<ffffffff810c3605>] perf_read+0x135/0x2d0
>> [ 1729.441225]        [<ffffffff8110c604>] vfs_read+0xc4/0x180
>> [ 1729.441245]        [<ffffffff8110ca10>] sys_read+0x50/0x90
>> [ 1729.441263]        [<ffffffff81002ceb>] system_call_fastpath+0x16/0x1b
>> [ 1729.441284]
>> [ 1729.441284] -> #0 (&ctx->mutex){+.+...}:
>> [ 1729.441313]        [<ffffffff810786cd>] validate_chain+0x134d/0x1360
>> [ 1729.441332]        [<ffffffff81078a53>] __lock_acquire+0x373/0xb30
>> [ 1729.441351]        [<ffffffff810792ac>] lock_acquire+0x9c/0x100
>> [ 1729.441369]        [<ffffffff81442e59>] mutex_lock_nested+0x69/0x340
>> [ 1729.441389]        [<ffffffff810c2ebd>] perf_event_release_kernel+0x2d/0xe0
>> [ 1729.441409]        [<ffffffff810c2f8b>] perf_release+0x1b/0x20
>> [ 1729.441426]        [<ffffffff8110d051>] __fput+0x101/0x230
>> [ 1729.441444]        [<ffffffff8110d457>] fput+0x17/0x20
>> [ 1729.441462]        [<ffffffff810e98d1>] remove_vma+0x51/0x90
>> [ 1729.441480]        [<ffffffff810ea708>] do_munmap+0x2e8/0x340
>> [ 1729.441498]        [<ffffffff810ebac0>] sys_munmap+0x50/0x80
>> [ 1729.441516]        [<ffffffff81002ceb>] system_call_fastpath+0x16/0x1b
>> [ 1729.441535]
>
> Crap, the thing is right.. you've been using group reads, which require
> holding the ctx->mutex to ensure the group doesn't change while you're
> reading it, leading to this inversion thing...
>
Correct, I am using PERF_READ_GROUP and PERF_SAMPLE_READ.

> Not sure where to break this loop though, the hacky way is pushing all
> of perf_event_release_kernel() into a work, but that's yucky.. Let me
> ponder this a bit more.
>
>

--
Stephane Eranian | EMEA Software Engineering
Google France | 38 avenue de l'Opéra | 75002 Paris
Tel : +33 (0) 1 42 68 53 00
This email may be confidential or privileged. If you received this
communication by mistake, please
don't forward it to anyone else, please erase all copies and
attachments, and please let me know that
it went to the wrong person. Thanks
--
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/

==============================================================================
TOPIC: kernel BUG at fs/dcache.c:670 using dmraid
http://groups.google.com/group/linux.kernel/t/4549101f87598bf7?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, Jan 28 2010 1:50 am
From: Thomas Backlund


Thomas Backlund skrev 28.1.2010 01:01:
> Hi, (please cc me on response)
>

[fixed typo in subject and message]

>
> I'm hitting a kernel BUG at fs/dcache.c:670 bug using dmraid on 2.6.32
> and 2.6.33-rc5-git2 kernels:
>
> Distro: Mandriva Linux Cooker
> Arch: x86_64
>
> Hardware: Intel ICH10R with 4 x 500GB disks in biosraid10,
> System has 8GB ram
>
> OOPS: http://tmb.mine.nu/Mandriva/Cooker/bugs/fs-dcache-bug/dsc00918.jpg
> config: http://tmb.mine.nu/Mandriva/Cooker/bugs/fs-dcache-bug/x86_64.config
>
> This happends on 2.6.33-rc5-git2, 2.6.32, and seems to be as old as
> 2.6.32-rc1.
>
> 2.6.31 is the latest kernel that actually boots on this system.
>
> I tried to bisect between 2.6.31 and 2.6.32-rc1, but it failed...
>
> Now before I start a second bisect, I decided to post here in case some
> one has some suggestions / pointers...
>

--
Thomas
--
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/

==============================================================================
TOPIC: - Fix unmap_vma() bug related to mmu_notifiers
http://groups.google.com/group/linux.kernel/t/506397f77de38486?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, Jan 28 2010 2:10 am
From: Andrea Arcangeli


On Wed, Jan 27, 2010 at 09:49:44PM -0600, Robin Holt wrote:
> > I think that with the SRCU patch, we have enough. Is that true or have
> > I missed something?
>
> I wasn't quite complete in my previous email. Your srcu patch
> plus Jack's patch to move the tlb_gather_mmu to after the
> mmu_notifier_invalidate_range_start().

My pmdp_clear_flush_notify with transparent hugepage will give some
trouble because it's using mmu_notifier_invalidate_range_start to
provide backwards compatible API to mmu notifier users like GRU that
may be mapping physical hugepages with 4k secondary tlb mappings
(which have to be all invalidated not only the first one). So that
would still require the full series as it's like if the rmap code
would be using mmu_notifier_invalidate_range_start. But we can
probably get away by forcing all mmu notifier methods to provide a
mmu_notifier_invalidate_hugepage.

But in addition to srcu surely you also need i_mmap_lock_to_sem for
unmap_mapping_range_vma taking i_mmap_lock, basically you missed
truncate. Which then in cascade requires free_pgtables,
rwsem-contended, unmap_vmas (the latter are for the tlb gather
required to be in atomic context to avoid scheduling to other cpus
while holding the tlb gather).

So you only avoid the need of anon-vma switching to rwsem (because
there's no range-vmtruncate but only rmap uses it on a page-by-page
basis with mmu_notifier_invalidate_page). So at that point IMHO you
can as well add a CONFIG_MMU_NOTIFIER_SLEEPABLE and allow scheduling
everywhere in mmu notifier IMHO, but if you prefer to avoid changing
anon_vma lock to rwsem and add refcounting that is ok with me too. I
just think it'd be cleaner to switch them all to sleepable code if we
have to provide for it and most of the work on the i_mmap_lock side is
mandatory anyway.
--
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/

==============================================================================
TOPIC: mmotm 2010-01-28-01-36 uploaded
http://groups.google.com/group/linux.kernel/t/1048092afd321a0f?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, Jan 28 2010 2:10 am
From: akpm@linux-foundation.org


The mm-of-the-moment snapshot 2010-01-28-01-36 has been uploaded to

http://userweb.kernel.org/~akpm/mmotm/

and will soon be available at

git://zen-kernel.org/kernel/mmotm.git

It contains the following patches against 2.6.33-rc5:

origin.patch
linux-next.patch
linux-next-git-rejects.patch
next-remove-localversion.patch
i-need-old-gcc.patch
hardware-latency-detector-remove-default-m.patch
revert-input-wistron_btns-switch-to-using-sparse-keymap-library.patch
drivers-media-video-cx23885-needs-kfifo-conversion.patch
idr-fix-a-critical-misallocation-bug.patch
mx3fb-some-debug-and-initialisation-fixes.patch
rtc-fm3130-add-missing-braces.patch
kfifo-fix-kernel-doc-notation.patch
mm-flush-dcache-before-writing-into-page-to-avoid-alias.patch
devmem-check-vmalloc-address-on-kmem-read-write.patch
devmem-fix-kmem-write-bug-on-memory-holes.patch
get_maintainerpl-teach-git-log-to-use-no-color.patch
markup_oopspl-fix-func_offset-error-with-x86_64.patch
cgroups-fix-to-return-errno-in-a-failure-path.patch
zlib-make-new-optimized-inflate-endian-independent.patch
zlib-make-new-optimized-inflate-endian-independent-checkpatch-fixes.patch
mm-add-swap-slot-free-callback-to-block_device_operations.patch
mm-add-swap-slot-free-callback-to-block_device_operations-fix.patch
drivers-acpi-processor_idlec-add-two-laptops-to-the-c-state-dmi-table.patch
drivers-gpu-vga-vgaarbc-fix-userspace-pointer-dereference.patch
futex_lock_pi-key-refcnt-fix.patch
mtd-nand-fix-build-failure-caused-by-typo.patch
starfire-clean-up-properly-if-firmware-loading-fails.patch
ibmphp-read-the-length-of-ebda-and-map-entire-ebda-region-fix.patch
sched-f83f9ac-causes-tasks-running-at-max_prio.patch
hpsa-fix-scsi-status-reporting-yet-again.patch
drivers-scsi-sesc-eliminate-double-free.patch
kernel-credc-use-kmem_cache_free.patch
tpm_infineon-fix-suspend-resume-handler-for-pnp_driver.patch
oprofile-x86-fix-crash-when-profiling-more-than-28-events.patch
dell_laptop-when-the-hardware-switch-is-disabled-dont-actually-allow-changing-the-softblock-status.patch
acpi-fix-confusion-in-acpi_evaluate_string-in-comment.patch
acpi-remove-superfluous-null-pointer-check-from-acpi_processor_get_throttling_info.patch
acpica-fix-acpi_ex_release_mutex-comment.patch
asus-acpi-remove-duplicate-comparison-of-asus_model-strings.patch
thinkpad-acpi-wrong-thermal-attribute_group-removed-in-thermal_exit.patch
arch-x86-mm-gupc-fix-minor-spelling-error-in-comments.patch
doc-document-nopat-parameter.patch
pci-update-pci_set_vga_state-to-call-arch-functions.patch
pci-update-pci_set_vga_state-to-call-arch-functions-fix.patch
x86_64-uv-update-uv-arch-to-target-legacy-vga-i-o-correctly.patch
vgaarb-fix-vga-arbiter-to-accept-pci-domains-other-than-0.patch
vgaarb-add-user-selectability-of-the-number-of-gpus-in-a-system.patch
arm-convert-proc-cpu-aligment-to-seq_file.patch
arch-arm-plat-pxa-dmac-correct-null-test.patch
arm-convert-to-arch_gettimeoffset.patch
gemini-wrong-registers-used-to-set-reg_level-in-gpio_set_irq_type.patch
cpufreq-ondemand-dont-synchronize-sample-rate-unless-mulitple-cpus-present.patch
cpufreq-ondemand-dont-synchronize-sample-rate-unless-mulitple-cpus-present-checkpatch-fixes.patch
cpufreq-ondemand-refactor-frequency-increase-code.patch
cpufreq-ondemand-independent-max-speed-for-nice-threads-with-nice_max_freq.patch
cpufreq-ondemand-independent-max-speed-for-nice-threads-with-nice_max_freq-fix.patch
dma-cases-ipu_pix_fmt_bgra32-bgr32-and-abgr32-are-the-same-in-ipu_ch_param_set_size.patch
powerpc-sky-cpu-redundant-or-incorrect-tests-on-unsigned.patch
kbuild-move-fno-dwarf2-cfi-asm-to-powerpc-only.patch
dnotify-move-dir_notify_enable-declaration.patch
drivers-gpu-drm-radeon-radeon_combiosc-fix-warning.patch
drivers-gpu-drm-nouveau-nouveau_grctxc-correct-null-test.patch
gpu-drm-i915-fix-potential-null-dereference.patch
drm-dont-use-own-implementation-of-atoi.patch
drivers-gpu-drm-drm_crtc_helperc-fix-setting-of-fb_changed-in-drm_crtc_helper_set_config.patch
drivers-media-video-move-dereference-after-null-test.patch
drivers-media-video-pmsc-needs-versionh.patch
drivers-media-video-kconfig-add-video_dev-dependency-as-needed-in-drivers-media-video-kconfig.patch
cx23885-wrong-command-printed-in-cmd_to_str.patch
radio-add-the-saa7706h-car-radio-dsp-to-v4l2-chip-identh.patch
timer-stats-fix-del_timer_sync-and-try_to_del_timer_sync.patch
posix-cpu-timers-reset-expire-cache-when-no-timer-is-running.patch
hrtimer-correct-a-few-numbers-in-comments.patch
clockevents-ensure-taht-min_delta_ns-is-increased-in-error-path.patch
clocksource-add-argument-to-resume-callback.patch
clocksource-start-cmt-at-clocksource-resume.patch
clocksource-add-suspend-callback.patch
posix-timersc-dont-export-local-functions.patch
timers-introduce-the-concept-of-timer-slack-for-legacy-timers.patch
cpu-timers-simplify-rlimit_cpu-handling.patch
cpu-timers-cleanup-arm_timer.patch
cpu-timers-return-correct-previous-timer-reload-value.patch
cpu-timers-change-sigev_none-timer-implementation.patch
cpu-timers-assure-to-not-iterate-over-all-threads-in-fastpath_timer_check.patch
cpu-timers-optimize-run_posix_cpu_timers.patch
kernel-timekeeping-move-xtime_cache-to-be-in-the-same-cache-line-as-the-lock.patch
ia64-wrong-attribute-of-hub-chip-written-in-uv_setup.patch
infiniband-use-rlimit-helpers.patch
input-bcm5974-retract-efi-broken-suspend_resume.patch
usbtouchscreen-convert-from-usb_device-to-usb_interface.patch
usbtouchscreen-find-input-endpoint-automatically.patch
usbtouchscreen-add-nexio-or-inexio-support.patch
usbtouchscreen-fix-nexio-ack-and-usb-disconnect.patch
usbtouchscreen-dont-send-interrupt-urbs-to-bulk-endpoints.patch
usbtouchscreen-fix-leaks-and-check-return-value-of-usb_submit_urb.patch
scripts-kallsyms-suppress-build-warning.patch
mtd-nand-davinci-correct-4-bit-error-correction.patch
jffs2-fix-memory-corruption-in-jffs2_read_inode_range.patch
jffs2-avoid-using-c-keyword-new-in-userspace-visible-header.patch
mtd-chips-cfi-remove-unneeded-null-checks.patch
mtd-hot-spin-and-code-duplication-in-nand_bcm_umi_bch_read_oobecc.patch
ntfs-use-bitmap_weight.patch
hisax-timeout-off-by-one-in-waitrecmsg.patch
hardware-misdn-misdninfineonc-bail-out-of-loop-on-error.patch
net-rds-remove-uses-of-nipquad-use-%pi4.patch
3x59x-fix-pci-resource-management.patch
net-ipv4-correct-the-size-argument-to-kzalloc.patch
video-backlight-progear-fix-pci-device-refcounting.patch
da9030_battery-fix-spelling-in-comment.patch
sunrpc-use-formatting-of-module-name-in-sunrpc.patch
net-sunrpc-remove-uses-of-nipquad-use-%pi4.patch
fs-ocfs2-cluster-tcpc-remove-use-of-nipquad-use-%pi4.patch
serial-bfin_5xx-remove-useless-gpio-handling-with-hard-flow-control.patch
serial-bfin_5xx-need-to-disable-dma-tx-interrupt-too.patch
serial-bfin_5xx-kgdboc-should-accept-gdb-break-only-when-it-is-active.patch
serial-bfin_5xx-pull-in-linux-ioh-for-ioremap-prototypes.patch
sched-cpuacct-use-bigger-percpu-counter-batch-values-for-stats-counters.patch
kernel-irq-procc-expose-the-irq_desc-node-in-proc-irq.patch
genirq-warn-about-irqf_sharedirqf_disabled-at-the-right-place.patch
scsi-add-__init-__exit-macros-to-ibmvstgtc.patch
drivers-scsi-fnic-fnic_scsic-clean-up.patch
drivers-scsi-gdthc-fix-buffer-overflow.patch
drivers-scsi-lpfc-lpfc_vportc-fix-read-buffer-overflow.patch
osst-fix-read-buffer-overflow.patch
gdth-unmap-ccb_phys-when-scsi_add_host-fails-in-gdth_eisa_probe_one.patch
drivers-scsi-libsas-use-sam_good.patch
ncr5380-bit-mr_dma_mode-set-twice-in-ncr5380_transfer_dma.patch
drivers-scsi-remove-unnecessary-null-test.patch
drivers-message-move-dereference-after-null-test.patch
scsi-pmcraid-redundant-check-in-pmcraid_check_ioctl_buffer.patch
mpt-fusion-convert-to-seq_file.patch
g_ncr5380-remove-misleading-pnp-error-message.patch
g_ncr5380-fix-broken-mmio-compilation.patch
g_ncr5380-fix-missing-pnp_device_detach-and-scsi_unregister-on-rmmod.patch
dc395x-decrease-iteration-for-tag_number-of-max_command-in-start_scsi.patch
drivers-scsi-correct-the-size-argument-to-kmalloc.patch
scsi-remove-superfluous-null-pointer-check-from-scsi_kill_request.patch
mpt2sas-fix-confusion-in-_scsih_sas_device_status_change_event.patch
drivers-scsi-remove-uses-of-nipquad-use-%pi4.patch
drivers-firmware-iscsi_ibftc-remove-nipquad_fmt-use-%pi4.patch
drivers-scsi-hpsac-fix-section-mismatch.patch
scsi-sdc-quiet-all-sparse-noise.patch
drivers-scsi-bfa-bfad_imc-eliminate-useless-code.patch
lpfc-two-branches-the-same-in-lpfc_decode_firmware_rev.patch
paride-fix-off-by-one-test.patch
drivers-staging-tm6000-tm6000-videoc-correct-null-test.patch
drivers-staging-go7007-s2250-loaderc-eliminate-useless-code.patch
rt2860-sta_ioctlc-two-branches-the-same-in-rt_ioctl_giwscan.patch
serqt_usb2-two-branches-the-same-in-qt_set_termios.patch
comedi-g1-3-status-registers-not-read-in-ni_gpct_to_660x_register.patch
musb-test-always-evaluates-to-false.patch
drivers-usb-serial-eliminate-useless-code.patch
sis-usb2vga-driver-support-kairens-usb-vga-adaptor-usb20svga-mb-plus.patch
vfs-fix-vfs_rename_dir-for-fs_rename_does_d_move-filesystems.patch
vfs-improve-comment-describing-fget_light.patch
ecryptfs-another-lockdep-issue.patch
xtensa-convert-to-asm-generic-hardirqh.patch
xtensa-includecheck-fix-vectorss.patch
modpost-support-objects-with-more-than-64k-sections.patch
mm.patch
define-madv_hugepage.patch
mm-clean-up-mm_counter.patch
mm-avoid-false-sharing-of-mm_counter.patch
mm-avoid-false-sharing-of-mm_counter-checkpatch-fixes.patch
mm-count-swap-usage.patch
mm-count-swap-usage-checkpatch-fixes.patch
mm-add-lowmem-detection-logic.patch
mm-add-lowmem-detection-logic-fix.patch
mm-count-lowmem-rss.patch
mm-count-lowmem-rss-checkpatch-fixes.patch
mm-introduce-dump_page-and-print-symbolic-flag-names.patch
page-allocator-reduce-fragmentation-in-buddy-allocator-by-adding-buddies-that-are-merging-to-the-tail-of-the-free-lists.patch
mlock_vma_pages_range-never-return-negative-value.patch
mlock_vma_pages_range-only-return-success-or-failure.patch
mm-use-rlimit-helpers.patch
vmscan-check-high-watermark-after-shrink-zone.patch
vmscan-check-high-watermark-after-shrink-zone-fix.patch
vmscan-get_scan_ratio-cleanup.patch
mm-lockdep-annotate-reclaim-context-to-zone-reclaim-too.patch
mm-page_allocc-remove-duplicate-call-to-trace_mm_page_free_direct.patch
mm-page_allocc-adjust-a-call-site-to-trace_mm_page_free_direct.patch
mm-remove-function-free_hot_page.patch
mm-remove-function-free_hot_page-fix.patch
mm-restore-zone-all_unreclaimable-to-independence-word.patch
mm-restore-zone-all_unreclaimable-to-independence-word-fix.patch
mm-restore-zone-all_unreclaimable-to-independence-word-fix-2.patch
mm-fix-mbind-vma-merge-problem.patch
mm-fix-mbind-vma-merge-problem-fix.patch
memory-hotplug-create-sys-firmware-memmap-entry-for-new-memory.patch
memory-hotplug-create-sys-firmware-memmap-entry-for-new-memory-fix.patch
mm-mempolicyc-fix-indentation-of-the-comments-of-do_migrate_pages.patch
mm-migratec-kill-anon-local-variable-from-migrate_page_copy.patch
mm-swapfilec-fix-nr_good_pages-calculation.patch
bootmem-avoid-dma32-zone-by-default.patch
vfs-take-f_lock-on-modifying-f_mode-after-open-time.patch
readahead-introduce-fmode_random-for-posix_fadv_random.patch
include-linux-fsh-convert-fmode_-constants-to-hex.patch
mm-memcontrolc-fix-integer-as-null-pointer-sparse-warning.patch
frv-remove-pci_dma_sync_single-and-pci_dma_sync_sg.patch
frv-duplicate-output_buffer-of-e03.patch
frv-duplicate-output_buffer-of-e03-checkpatch-fixes.patch
cpuidle-menu-remove-8-bytes-of-padding-on-64-bit-builds.patch
cris-convert-to-use-arch_gettimeoffset.patch
cryptocop-fix-assertion-in-create_output_descriptors.patch
cris-v32-typo-in-crisv32_arbiter_unwatch.patch
drivers-block-floppyc-convert-some-include-asm-to-include-linux.patch
drivers-block-floppyc-define-space-and-column-neatening.patch
drivers-block-floppyc-use-pr_level.patch
drivers-block-floppyc-remove-unnecessary-braces.patch
drivers-block-floppyc-remove-used-once-check_ready-macro.patch
drivers-block-floppyc-hoist-assigns-from-ifs-neatening.patch
drivers-block-floppyc-remove-last_out-macro.patch
drivers-block-floppyc-comment-neatening-and-remove-naked.patch
drivers-block-floppyc-remove-clearstruct-macro-use-memset.patch
drivers-block-floppyc-indent-a-comment.patch
drivers-block-floppyc-remove-in-out-macros-indent-switch-case.patch
drivers-block-floppyc-remove-a-few-spaces-from-function-casts.patch
drivers-block-floppyc-remove-macro-lock_fdc.patch
drivers-block-floppyc-add-debug_dcl-macro.patch
drivers-block-floppyc-remove-clearf-setf-and-testf-macros.patch
drivers-block-floppyc-remove-most-uses-of-call-and-ecall-macros.patch
drivers-block-floppyc-remove-copyin-copyout-and-ecall-macros.patch
drivers-block-floppyc-remove-macros-call-wait-and-iwait.patch
drivers-block-floppyc-convert-int-1-0-to-bool-true-false.patch
drivers-block-floppyc-move-leading-and-to-preceding-line.patch
drivers-block-floppyc-remove-define-device_name-floppy.patch
drivers-block-floppyc-convert-int-initialising-to-bool-initialized.patch
drivers-block-floppyc-add-function-is_ready_state.patch
drivers-block-floppyc-remove-unnecessary-return-and-braces.patch
drivers-block-floppyc-remove-repeat-macro.patch
drivers-block-floppyc-unclutter-redo_fd_request-logic.patch
drivers-block-floppyc-remove-unnecessary-argument-from-reschedule_timeout.patch
drivers-block-floppyc-remove-define-floppy_sanity_check.patch
drivers-block-floppyc-dprint-neatening.patch
drivers-block-floppyc-use-__func__-where-appropriate.patch
drivers-block-floppyc-use-%pf-in-logging-messages.patch
drivers-block-floppyc-remove-some-unnecessary-casting.patch
drivers-block-floppyc-convert-raw_cmd_copyin-from-while1-to-label-goto.patch
drivers-block-floppyc-add-__func__-to-debugt.patch
drivers-block-floppyc-remove-obfuscating-code2size-macro.patch
drivers-block-floppyc-remove-misleading-used-once-fd_ioctl_allowed-macro.patch
drivers-block-floppyc-remove-unnecessary-casting-in-fd_ioctl.patch
uml-linec-avoid-null-pointer-dereference.patch
uml-linec-avoid-null-pointer-dereference-simplify.patch
mfgpt-move-clocksource-menu.patch
prctl-add-pr_set_proctitle_area-option-for-prctl.patch
kernel-cpuc-delete-deprecated-definition-in-cpu_up.patch
init-mainc-improve-usability-in-case-of-init-binary-failure.patch
init-initramfsc-fix-symbol-shadows-an-earlier-one-noise.patch
cpumask-let-num__cpus-function-always-return-unsigned-values.patch
fs-use-rlimit-helpers.patch
nodemaskh-remove-macro-any_online_node.patch
smp-fix-documentation-in-include-linux-smph.patch
init-mainc-make-setup_max_cpus-static-for-smp.patch
drivers-misc-iwmc3200top-mainc-eliminate-useless-code.patch
eisa-fix-coding-style-for-eisa-bus-code.patch
resources-introduce-generic-page_is_ram.patch
resources-introduce-generic-page_is_ram-fix.patch
resources-introduce-generic-page_is_ram-fix-2.patch
x86-remove-bios-data-range-from-e820.patch
x86-use-the-generic-page_is_ram.patch
python-change-scripts-to-use-system-python-instead-of-env.patch
kernel-exitc-fix-shadows-sparse-warning.patch
scripts-get_maintainerpl-add-file-emails-find-embedded-email-addresses.patch
scripts-get_maintainerpl-add-file-emails-find-embedded-email-addresses-v2.patch
scripts-get_maintainerpl-add-sections-print-entire-matched-subsystem.patch
scripts-get_maintainerpl-change-sections-to-print-in-the-same-style-as-maintainers.patch
maintainers-remove-amd-geode-f-arch-x86-kernel-geode_32c.patch
maintainers-remove-hayes-esp-serial-driver.patch
maintainers-update-performance-events-f-patterns.patch
maintainers-starmode-radio-ip-strip-moved-to-staging.patch
maintainers-wavelan-moved-to-staging.patch
lib-stringc-simplify-stricmp.patch
lib-stringc-simplify-strnstr.patch
mmc-remove-const-from-tmio-mmc-platform-data-v2.patch
mmc-balance-tmio-mmc-cell-enable-disable-calls.patch
ricoh_mmc-port-from-driver-to-pci-quirk.patch
davinci-mmc-add-support-for-8bit-mmc-cards.patch
davinci-mmc-add-a-function-to-control-reset-state-of-the-controller.patch
davinci-mmc-updates-to-suspend-resume-implementation.patch
mmc-atmel-host-kconfig-cleanup-for-everyone-else.patch
mmc-bfin_sdh-fix-unused-sg-warning-on-bf51x-bf52x-systems.patch
mmc-bfin_sdh-drop-redundant-mmc-depend-string.patch
mmc-bfin_sdh-set-timeout-based-on-actual-card-data.patch
sdio-add-quirk-to-clamp-byte-mode-transfer.patch
sdio-recognize-io-card-without-powercycle.patch
scripts-checkpatchpl-add-warn-on-sizeof.patch
checkpatch-trivial-fix-for-trailing-statements-check.patch
checkpatchpl-allow-80-char-lines-for-logging-functions-not-just-printk.patch
checkpatch-fix-false-positive-on-__initconst.patch
checkpatchpl-add-union-and-struct-to-the-exceptions-list.patch
checkpatchpl-extend-list-of-expected-to-be-const-structures.patch
checkpatchpl-warn-if-an-adding-line-introduce-spaces-before-tabs.patch
proc-do-translation-unlink-atomically-at-remove_proc_entry.patch
proc-warn-on-non-existing-proc-entries.patch
coredump-unify-dump_seek-implementations-for-each-binfmt_c.patch
coredump-move-dump_write-and-dump_seek-into-a-header-file.patch
elf-coredump-replace-elf_core_extra_-macros-by-functions.patch
elf-coredump-make-offset-calculation-process-and-writing-process-explicit.patch
elf-coredump-add-extended-numbering-support.patch
mm-pass-mm-flags-as-a-coredump-parameter-for-consistency.patch
mm-pass-mm-flags-as-a-coredump-parameter-for-consistency-fix.patch
console-limit-the-range-of-vgacon_soft_scrollback_size.patch
console-vgaconc-mark-file-local-symbol-static.patch
xen-add-kconfig-menu.patch
rtc-mxc-fix-memory-leak.patch
rtc-ep93xxc-cleanup-probe-remove-routines.patch
rtc-add-rtc-davinci-v3.patch
rtc-pcf2123-move-pcf2123_remove-to-devexittext.patch
rtc-at91sam9-correct-size-given-to-memset.patch
rtc-twl-storage-class-should-be-before-const-qualifier.patch
gpio-add-driver-for-max7300-i2c-gpio-extender.patch
pca953x-minor-include-cleanup.patch
gpio-introduce-gpio_request_one-and-friends.patch
gpio-introduce-gpio_request_one-and-friends-update.patch
timbgpio-add-support-for-interrupt-triggering-on-both-flanks.patch
asiliantfb-fix-test-of-unsigned-in-asiliant_calc_dclk2.patch
fbdev-bf54x-lq043fb-bfin-t350mcqb-fb-drop-custom-mmap-handler.patch
broadsheetfb-add-multiple-panel-type-support.patch
viafb-deprecate-private-ioctls.patch
viafb-remove-dead-code.patch
viafb-split-global-index-up.patch
viafb-remove-the-remaining-via_res_-uses.patch
viafb-some-dvi-cleanup.patch
viafb-yet-another-dead-code-removal.patch
broadsheetfb-add-mmio-hooks.patch
imxfb-correct-location-of-callbacks-in-suspend-and-resume.patch
intelfb-new-maintainer.patch
fbdev-remove-obsolete-config_fb_soft_cursor.patch
hfsplus-identify-journal-info-block-in-volume-header.patch
hfsplus-fix-journal-detection.patch
cgroup-introduce-cancel_attach.patch
cgroup-introduce-coalesce-css_get-and-css_put.patch
cgroups-revamp-subsys-array.patch
cgroups-subsystem-module-loading-interface.patch
cgroups-subsystem-module-loading-interface-fix.patch
cgroups-subsystem-module-unloading.patch
cgroups-subsystem-module-unloading-fix.patch
cgroups-net_cls-as-module.patch
cgroups-fix-contents-in-cgroups-documentation.patch
cgroups-blkio-subsystem-as-module.patch
cgroups-clean-up-cgroup_pidlist_find-a-bit.patch
memcg-add-interface-to-move-charge-at-task-migration.patch
memcg-move-charges-of-anonymous-page.patch
memcg-move-charges-of-anonymous-page-cleanup.patch
memcg-improve-performance-in-moving-charge.patch
memcg-avoid-oom-during-moving-charge.patch
memcg-move-charges-of-anonymous-swap.patch
memcg-move-charges-of-anonymous-swap-fix.patch
memcg-move-charges-of-anonymous-swap-fix-2.patch
memcg-improve-performance-in-moving-swap-charge.patch
memcg-improve-performance-in-moving-swap-charge-fix.patch
cgroup-implement-eventfd-based-generic-api-for-notifications.patch
cgroup-implement-eventfd-based-generic-api-for-notifications-kconfig-fix.patch
cgroup-implement-eventfd-based-generic-api-for-notifications-fixes.patch
memcg-extract-mem_group_usage-from-mem_cgroup_read.patch
memcg-rework-usage-of-stats-by-soft-limit.patch
memcg-implement-memory-thresholds.patch
memcg-implement-memory-thresholds-checkpatch-fixes.patch
memcg-implement-memory-thresholds-checkpatch-fixes-fix.patch
memcg-typo-in-comment-to-mem_cgroup_print_oom_info.patch
tracehooks-kill-some-pt_ptraced-checks.patch
tracehooks-check-pt_ptraced-before-reporting-the-single-step.patch
ptrace_signal-check-pt_ptraced-before-reporting-a-signal.patch
export-__ptrace_detach-and-do_notify_parent_cldstop.patch
reorder-the-code-in-kernel-ptracec.patch
implement-utrace-ptrace.patch
utrace-core.patch
utrace-core-utrace-fix-utrace_maybe_reap-vs-find_matching_engine-race.patch
copy_signal-cleanup-use-zalloc-and-remove-initializations.patch
copy_signal-cleanup-kill-taskstats_tgid_init-and-acct_init_pacct.patch
copy_signal-cleanup-clean-thread_group_cputime_init.patch
copy_signal-cleanup-clean-tty_audit_fork.patch
ipc-use-rlimit-helpers.patch
ipmi-add-parameter-to-limit-cpu-usage-in-kipmid.patch
rcu-add-rcustring-adt-for-rcu-protected-strings.patch
add-a-kernel_address-that-works-for-data-too.patch
sysctl-add-proc_rcu_string-to-manage-sysctls-using-rcu-strings.patch
sysctl-use-rcu-strings-for-core_pattern-sysctl.patch
sysctl-add-call_usermodehelper_cleanup.patch
sysctl-convert-modprobe_path-to-proc_rcu_string.patch
sysctl-convert-poweroff_command-to-proc_rcu_string.patch
sysctl-convert-hotplug-helper-string-to-proc_rcu_string.patch
sysctl-use-rcu-protected-sysctl-for-ocfs-group-add-helper.patch
delay-accounting-re-implement-c-for-getdelaysc-to-report-information-on-a-target-command.patch
delay-accounting-re-implement-c-for-getdelaysc-to-report-information-on-a-target-command-checkpatch-fixes.patch
drivers-edac-introduce-missing-kfree.patch
documentation-dma-apitxt-remove-deprecated-function-descriptions.patch
w1-fix-test-in-ds2482_wait_1wire_idle.patch
drivers-char-mmtimerc-eliminate-useless-code.patch
markup_oopspl-add-options-to-improve-cross-compilation-environments.patch
markup_oopspl-add-options-to-improve-cross-compilation-environments-update.patch
kernel-kfifoc-fix-integer-as-null-pointer-sparse-warning.patch
vfs-take-2add-set_page_dirty_notag.patch
reiser4-vfs-add-super_operationssync_inodes-2.patch
reiser4-export-remove_from_page_cache.patch
reiser4-export-remove_from_page_cache-fix.patch
reiser4-export-find_get_pages.patch
reiser4.patch
reiser4-adjust-to-the-new-aops.patch
reiser4-adjust-to-the-new-aops-fixup.patch
reiser4-remove-simple_prepare_write-usage.patch
reiser4-remove-simple_prepare_write-usage-checkpatch-fixes.patch
fs-symlink-write_begin-allocation-context-fix-reiser4-fix.patch
reiser4-handling-error-returned-by-d_obtain_alias-fixup.patch
reiser4-update-names-of-quota-methods.patch
reiser4-use-set_page_dirty_notag.patch
fs-reiser4-add-parenths-around-x-y.patch
fs-reiser4-contextc-current_is_pdflush-got-removed.patch
reiser4-fix.patch
reiser4-rename-psched-to-dispatch.patch
reiser4-drop-journal-info.patch
reiser4-fix-compile-warnings.patch
reiser4-reduce-frame-size-of-reiser4_init_super_data.patch
reiser4-reduce-frame-size-of-reiser4_init_super_data-fixup.patch
reiser4-some-changes-from-reiser4-2631-patch.patch
reiser4-some-comments-were-still-mentioning-pdflush.patch
reiser4-generic_sync_sb_inodes-doesnt-exist-anymore.patch
reiser4-fixed-null-pointer-dereference.patch
make-sure-nobodys-leaking-resources.patch
journal_add_journal_head-debug.patch
releasing-resources-with-children.patch
make-frame_pointer-default=y.patch
mutex-subsystem-synchro-test-module.patch
mutex-subsystem-synchro-test-module-add-missing-header-file.patch
slab-leaks3-default-y.patch
put_bh-debug.patch
add-debugging-aid-for-memory-initialisation-problems.patch
workaround-for-a-pci-restoring-bug.patch
prio_tree-debugging-patch.patch
single_open-seq_release-leak-diagnostics.patch
add-a-refcount-check-in-dput.patch
getblk-handle-2tb-devices.patch
getblk-handle-2tb-devices-fix.patch
notify_change-callers-must-hold-i_mutex.patch
--
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/

==============================================================================
TOPIC: regulator: Convert fixed voltage regulator to use enable_time()
http://groups.google.com/group/linux.kernel/t/5f6a0badb5853962?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, Jan 28 2010 2:30 am
From: Mark Brown


It had an open coded version in enable().

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
drivers/regulator/fixed.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c
index ee3e7eb..a3d3bfc 100644
--- a/drivers/regulator/fixed.c
+++ b/drivers/regulator/fixed.c
@@ -50,8 +50,6 @@ static int fixed_voltage_enable(struct regulator_dev *dev)
if (gpio_is_valid(data->gpio)) {
gpio_set_value_cansleep(data->gpio, data->enable_high);
data->is_enabled = 1;
- if (data->startup_delay)
- udelay(data->startup_delay);
}

return 0;
@@ -69,6 +67,13 @@ static int fixed_voltage_disable(struct regulator_dev *dev)
return 0;
}

+static int fixed_voltage_enable_time(struct regulator_dev *dev)
+{
+ struct fixed_voltage_data *data = rdev_get_drvdata(dev);
+
+ return data->startup_delay;
+}
+
static int fixed_voltage_get_voltage(struct regulator_dev *dev)
{
struct fixed_voltage_data *data = rdev_get_drvdata(dev);
@@ -91,6 +96,7 @@ static struct regulator_ops fixed_voltage_ops = {
.is_enabled = fixed_voltage_is_enabled,
.enable = fixed_voltage_enable,
.disable = fixed_voltage_disable,
+ .enable_time = fixed_voltage_enable_time,
.get_voltage = fixed_voltage_get_voltage,
.list_voltage = fixed_voltage_list_voltage,
};
--
1.6.6

--
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/

==============================================================================
TOPIC: Add type of locks to lock trace events
http://groups.google.com/group/linux.kernel/t/b401f2c4371a72bd?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, Jan 28 2010 2:30 am
From: Peter Zijlstra


On Tue, 2010-01-26 at 14:56 +0900, Hitoshi Mitake wrote:
> # Sorry, I wrote wrong Cc address. Previous mail was rejected by mailer-daemon.
> # This is second time sending, if you already received this, please discard it...
>
> There's no need to add any member to lockdep_map
> for adding information of type of locks to lock trace events.
>
> Example of perf trace:
> | init-0 [001] 335.078670: lock_acquired: 0xffff8800059d6bd8 &rq->lock kernel/lockdep.c:2973 (0 ns)
> | rb_consumer-424 [001] 335.078673: lock_acquire: 0xffff8800059d6bd8 1 &rq->lock kernel/lockdep.c:2973
> | # ^ &rq->lock is spin lock!
> | rb_consumer-424 [001] 335.078677: lock_acquire: 0xffff8800bba5e8e8 1 buffer->reader_lock_key kernel/trace/ring_
> | rb_consumer-424 [001] 335.078679: lock_acquired: 0xffff8800bba5e8e8 buffer->reader_lock_key kernel/trace/ring_b
> | rb_consumer-424 [001] 335.078684: lock_acquire: 0xffff8800059d12e8 1 &q->lock kernel/smp.c:83
>
> Of course, as you told, type of lock dealing with is clear for human.
> But it is not clear for programs like perf lock.
>
> What I want to do is limiting types of lock focus on.
> e.g. perf lock prof --type spin,rwlock
>
> How do you think, Peter?

I still don't see the use for it, surely you're going to be familiar
with the code if you're looking at lock statistics?

--
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/

==============================================================================
TOPIC: [PATCH 1/2 v2] perf_event: cleanup for event profile buffer operation
http://groups.google.com/group/linux.kernel/t/527b4b036d781f53?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, Jan 28 2010 2:40 am
From: Frederic Weisbecker


On Thu, Jan 28, 2010 at 09:32:29AM +0800, Xiao Guangrong wrote:
> Introduce ftrace_perf_buf_prepare() and ftrace_perf_buf_submit() to
> operate event profile buffer, clean up redundant code
>
> Changlog v1->v2:
> - Rename function name address Masami and Frederic's suggestion
> - Add __kprobes for ftrace_perf_buf_prepare() and make
> ftrace_perf_buf_submit() inline address Masami's suggestion
> - Export ftrace_perf_buf_prepare since module will use it
>
> Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
> Acked-by: Masami Hiramatsu <mhiramat@redhat.com>
> Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
> ---
> include/linux/ftrace_event.h | 18 ++++++-
> include/trace/ftrace.h | 48 +++-----------------
> kernel/trace/trace_event_profile.c | 52 +++++++++++++++++++--
> kernel/trace/trace_kprobe.c | 86 ++++-------------------------------
> kernel/trace/trace_syscalls.c | 71 ++++-------------------------
> 5 files changed, 88 insertions(+), 187 deletions(-)


I'm queuing these two patches, thanks Xiao!

--
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/

==============================================================================
TOPIC: sysctl clean up vm related variable declarations
http://groups.google.com/group/linux.kernel/t/6ace9fc4debea132?hl=en
==============================================================================

== 1 of 1 ==
Date: Thurs, Jan 28 2010 2:40 am
From: KAMEZAWA Hiroyuki


On Thu, 28 Jan 2010 00:54:49 -0800 (PST)
David Rientjes <rientjes@google.com> wrote:

> > ---
> > include/linux/mm.h | 5 +++++
> > include/linux/mmzone.h | 1 +
> > include/linux/oom.h | 5 +++++
> > kernel/sysctl.c | 16 ++--------------
> > mm/mmap.c | 5 +++++
> > 5 files changed, 18 insertions(+), 14 deletions(-)
> >
> > Index: mmotm-2.6.33-Jan15-2/include/linux/mm.h
> > ===================================================================
> > --- mmotm-2.6.33-Jan15-2.orig/include/linux/mm.h
> > +++ mmotm-2.6.33-Jan15-2/include/linux/mm.h
> > @@ -1432,6 +1432,7 @@ int in_gate_area_no_task(unsigned long a
> > #define in_gate_area(task, addr) ({(void)task; in_gate_area_no_task(addr);})
> >

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate