search for: curstate

Displaying 17 results from an estimated 17 matches for "curstate".

Did you mean: ourstate
2016 Oct 21
3
[PATCH 2/5] stop_machine: yield CPU during stop machine
...top_machine.c > +++ b/kernel/stop_machine.c > @@ -194,7 +194,7 @@ static int multi_cpu_stop(void *data) > /* Simple state machine */ > do { > /* Chill out and ensure we re-read multi_stop_state. */ > - cpu_relax(); > + cpu_relax_yield(); > if (msdata->state != curstate) { > curstate = msdata->state; > switch (curstate) { > -- > 2.5.5 >
2016 Oct 21
3
[PATCH 2/5] stop_machine: yield CPU during stop machine
...top_machine.c > +++ b/kernel/stop_machine.c > @@ -194,7 +194,7 @@ static int multi_cpu_stop(void *data) > /* Simple state machine */ > do { > /* Chill out and ensure we re-read multi_stop_state. */ > - cpu_relax(); > + cpu_relax_yield(); > if (msdata->state != curstate) { > curstate = msdata->state; > switch (curstate) { > -- > 2.5.5 >
2016 Oct 25
0
[GIT PULL v2 2/5] stop_machine: yield CPU during stop machine
...x ec9ab2f..1eb8266 100644 --- a/kernel/stop_machine.c +++ b/kernel/stop_machine.c @@ -194,7 +194,7 @@ static int multi_cpu_stop(void *data) /* Simple state machine */ do { /* Chill out and ensure we re-read multi_stop_state. */ - cpu_relax(); + cpu_relax_yield(); if (msdata->state != curstate) { curstate = msdata->state; switch (curstate) { -- 2.5.5
2016 Oct 22
1
[PATCH 2/5] stop_machine: yield CPU during stop machine
...p_machine.c > > @@ -194,7 +194,7 @@ static int multi_cpu_stop(void *data) > > /* Simple state machine */ > > do { > > /* Chill out and ensure we re-read multi_stop_state. */ > > - cpu_relax(); > > + cpu_relax_yield(); > > if (msdata->state != curstate) { > > curstate = msdata->state; > > switch (curstate) { > > -- > > 2.5.5 > > This is the only caller of cpu_relax_yield()? As a step to removing cpu_yield_lowlatency this series is nice so I have no objection. But "general" kernel coders sti...
2016 Oct 24
0
[PATCH 2/5] stop_machine: yield CPU during stop machine
...gt; @@ -194,7 +194,7 @@ static int multi_cpu_stop(void *data) >>> /* Simple state machine */ >>> do { >>> /* Chill out and ensure we re-read multi_stop_state. */ >>> - cpu_relax(); >>> + cpu_relax_yield(); >>> if (msdata->state != curstate) { >>> curstate = msdata->state; >>> switch (curstate) { >>> -- >>> 2.5.5 >>> > > This is the only caller of cpu_relax_yield()? As of today yes. Right now the yielding (call to hypervisor) in cpu_relax is only done for s390. Some...
2014 Aug 06
3
portableParalleSeeds Package violation, CRAN exception?
...the part where the R check gives a Note * checking R code for possible problems ... NOTE Found the following assignments to the global environment: File ?portableParallelSeeds/R/initPortableStreams.R?: assign("currentStream", n, envir = .GlobalEnv) assign("currentStates", curStates, envir = .GlobalEnv) assign("currentStream", 1L, envir = .GlobalEnv) assign("startStates", runSeeds, envir = .GlobalEnv) assign("currentStates", runSeeds, envir = .GlobalEnv) assign("currentStream", as.integer(currentStream), envir = .GlobalEnv)...
2008 Jul 16
2
[PATCH] stopmachine: add stopmachine_timeout v2
...um stopmachine_state newstate) { /* Reset ack counter. */ - atomic_set(&thread_ack, num_threads); + atomic_set(&thread_ack, atomic_read(&num_threads)); smp_wmb(); state = newstate; } @@ -67,6 +70,8 @@ static int stop_cpu(struct stop_machine_data *smdata) enum stopmachine_state curstate = STOPMACHINE_NONE; int uninitialized_var(ret); + cpu_set(smp_processor_id(), prepared_cpus); + /* Simple state machine */ do { /* Chill out and ensure we re-read stopmachine_state. */ @@ -90,6 +95,7 @@ static int stop_cpu(struct stop_machine_data *smdata) } } while (curstate != STO...
2008 Jul 16
2
[PATCH] stopmachine: add stopmachine_timeout v2
...um stopmachine_state newstate) { /* Reset ack counter. */ - atomic_set(&thread_ack, num_threads); + atomic_set(&thread_ack, atomic_read(&num_threads)); smp_wmb(); state = newstate; } @@ -67,6 +70,8 @@ static int stop_cpu(struct stop_machine_data *smdata) enum stopmachine_state curstate = STOPMACHINE_NONE; int uninitialized_var(ret); + cpu_set(smp_processor_id(), prepared_cpus); + /* Simple state machine */ do { /* Chill out and ensure we re-read stopmachine_state. */ @@ -90,6 +95,7 @@ static int stop_cpu(struct stop_machine_data *smdata) } } while (curstate != STO...
2008 Jul 17
1
[PATCH] stopmachine: add stopmachine_timeout v4
...um stopmachine_state newstate) { /* Reset ack counter. */ - atomic_set(&thread_ack, num_threads); + atomic_set(&thread_ack, atomic_read(&num_threads)); smp_wmb(); state = newstate; } @@ -67,6 +70,8 @@ static int stop_cpu(struct stop_machine_data *smdata) enum stopmachine_state curstate = STOPMACHINE_NONE; int uninitialized_var(ret); + cpu_set(smp_processor_id(), prepared_cpus); + /* Simple state machine */ do { /* Chill out and ensure we re-read stopmachine_state. */ @@ -90,6 +95,7 @@ static int stop_cpu(struct stop_machine_data *smdata) } } while (curstate != STO...
2008 Jul 17
1
[PATCH] stopmachine: add stopmachine_timeout v4
...um stopmachine_state newstate) { /* Reset ack counter. */ - atomic_set(&thread_ack, num_threads); + atomic_set(&thread_ack, atomic_read(&num_threads)); smp_wmb(); state = newstate; } @@ -67,6 +70,8 @@ static int stop_cpu(struct stop_machine_data *smdata) enum stopmachine_state curstate = STOPMACHINE_NONE; int uninitialized_var(ret); + cpu_set(smp_processor_id(), prepared_cpus); + /* Simple state machine */ do { /* Chill out and ensure we re-read stopmachine_state. */ @@ -90,6 +95,7 @@ static int stop_cpu(struct stop_machine_data *smdata) } } while (curstate != STO...
2014 Jun 22
1
[PATCH 11/11] qspinlock, kvm: Add paravirt support
...ces Waiman mentioned, are we also in need of smp_mb() here and/or native_queue_unlock()?. Interestingly I see other cpu stuck at multi_cpu_stop(). (gdb) thr 1 [Switching to thread 1 (Thread 1)]#0 multi_cpu_stop (data=0xffff8802140d1da0) at kernel/stop_machine.c:192 192 if (msdata->state != curstate) { Or is it I am missing something. please let me know if .config need to be shared. > + local_irq_save(flags); > + > + /* > + * check again make sure it didn't become free while > + * we weren't looking. > + */ > + if (ACCESS_ONCE(*ptr) != val) > + goto out;...
2014 Jun 22
1
[PATCH 11/11] qspinlock, kvm: Add paravirt support
...ces Waiman mentioned, are we also in need of smp_mb() here and/or native_queue_unlock()?. Interestingly I see other cpu stuck at multi_cpu_stop(). (gdb) thr 1 [Switching to thread 1 (Thread 1)]#0 multi_cpu_stop (data=0xffff8802140d1da0) at kernel/stop_machine.c:192 192 if (msdata->state != curstate) { Or is it I am missing something. please let me know if .config need to be shared. > + local_irq_save(flags); > + > + /* > + * check again make sure it didn't become free while > + * we weren't looking. > + */ > + if (ACCESS_ONCE(*ptr) != val) > + goto out;...
2016 Oct 25
7
[GIT PULL v2 0/5] cpu_relax: drop lowlatency, introduce yield
Peter, here is v2 with some improved patch descriptions and some fixes. The previous version has survived one day of linux-next and I only changed small parts. So unless there is some other issue, feel free to pull (or to apply the patches) to tip/locking. The following changes since commit 07d9a380680d1c0eb51ef87ff2eab5c994949e69: Linux 4.9-rc2 (2016-10-23 17:10:14 -0700) are available in
2016 Oct 25
7
[GIT PULL v2 0/5] cpu_relax: drop lowlatency, introduce yield
Peter, here is v2 with some improved patch descriptions and some fixes. The previous version has survived one day of linux-next and I only changed small parts. So unless there is some other issue, feel free to pull (or to apply the patches) to tip/locking. The following changes since commit 07d9a380680d1c0eb51ef87ff2eab5c994949e69: Linux 4.9-rc2 (2016-10-23 17:10:14 -0700) are available in
2009 Dec 29
0
aMSN segfaults at login after configuring my home network
...a0cad0 "messenger.hotmail.com", server=0, myaddr=0x0, myport=0, async=1) at /build/buildd/tcl8.5-8.5.7/unix/../unix/tclUnixChan.c:2290 status = <value optimized out> sock = <value optimized out> asyncConnect = <value optimized out> curState = <value optimized out> sockaddr = {sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0}, sin_zero = "\000\000\b\000\vp", <incomplete sequence \344\267>} mysockaddr = {sin_family = 51858, sin_port = 47066, sin_addr = { s_addr = 12}, sin_z...
2014 Jun 15
28
[PATCH 00/11] qspinlock with paravirt support
Since Waiman seems incapable of doing simple things; here's my take on the paravirt crap. The first few patches are taken from Waiman's latest series, but the virt support is completely new. Its primary aim is to not mess up the native code. I've not stress tested it, but the virt and paravirt (kvm) cases boot on simple smp guests. I've not done Xen, but the patch should be
2014 Jun 15
28
[PATCH 00/11] qspinlock with paravirt support
Since Waiman seems incapable of doing simple things; here's my take on the paravirt crap. The first few patches are taken from Waiman's latest series, but the virt support is completely new. Its primary aim is to not mess up the native code. I've not stress tested it, but the virt and paravirt (kvm) cases boot on simple smp guests. I've not done Xen, but the patch should be