search for: 40,6

Displaying 20 results from an estimated 603 matches for "40,6".

Did you mean: 4,6
2019 Sep 17
1
[PATCH 1/3] pci: force disable ASPM before changing the link speed
....pcie.force_aspm_off = g84_pcie_force_aspm_off, > }; > > int > diff --git a/drm/nouveau/nvkm/subdev/pci/g94.c b/drm/nouveau/nvkm/subdev/pci/g94.c > index 09adb37a5..aa152d798 100644 > --- a/drm/nouveau/nvkm/subdev/pci/g94.c > +++ b/drm/nouveau/nvkm/subdev/pci/g94.c > @@ -40,6 +40,7 @@ g94_pci_func = { > .pcie.set_version = g84_pcie_set_version, > .pcie.version = g84_pcie_version, > .pcie.version_supported = g92_pcie_version_supported, > + .pcie.force_aspm_off = g84_pcie_force_aspm_off, > }; > > int > diff --git a...
2009 Aug 06
1
[PATCH] Fix errno check in readdir in devsparts.c
--- daemon/devsparts.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/daemon/devsparts.c b/daemon/devsparts.c index b89682c..e9c5e8f 100644 --- a/daemon/devsparts.c +++ b/daemon/devsparts.c @@ -40,7 +40,6 @@ foreach_block_device (block_dev_func_t func) int size = 0, alloc = 0; DIR *dir; - struct dirent *d; int err = 0; dir = opendir ("/sys/block"); @@ -49,8 +48,11 @@ foreach_block_device (block_dev_func_t func) return NULL; } - errno = 0; - while ((d =...
2010 Apr 14
1
[PATCH] Fix build error in fuse/guestmount.c
...#39; [-Wimplicit-function-declaration] guestmount.c wasn't including locale.h. --- fuse/guestmount.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fuse/guestmount.c b/fuse/guestmount.c index b4a917f..27a4cef 100644 --- a/fuse/guestmount.c +++ b/fuse/guestmount.c @@ -40,6 +40,7 @@ #include <assert.h> #include <sys/time.h> #include <sys/types.h> +#include <locale.h> #include <fuse.h> #include <guestfs.h> -- 1.6.6.1
2012 Aug 26
1
[PATCH] Mac OS X: Fixed combination of running autogen.sh on Linux and building on Mac OS X
Signed-off-by: Masami HIRATA <msmhrt at gmail.com> --- generator/generator_xdr.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/generator/generator_xdr.ml b/generator/generator_xdr.ml index 9acea8f..ef9e0f2 100644 --- a/generator/generator_xdr.ml +++ b/generator/generator_xdr.ml @@ -40,6 +40,7 @@ let generate_xdr () = generate_header CStyle LGPLv2plus; (* This has to be defined to get around a limitation in Mac OS X's rpcgen. *) + pr "%%#include <config.h>\n"; pr "#if HAVE_XDR_U_INT64_T\n"; pr "#define uint64_t u_int64_t\n";...
2003 Aug 18
0
apply and sort vs vectorized order
...A.order<-t(A.order) } else dim(A.order)<-dim(A) return(A.order) } else return(order(A.order,decreasing=decreasing)) } # Some system time comparisons # CHANGE Nrandom ACORDING TO YOUR SYSTEM Nrandom=1000 A<-matrix(rnorm(Nrandom*Nrandom),nrow=Nrandom,ncol=Nrandom) A[rbind(c(100,3),c(90,9),c(40,6))]<-NA system.time({A.r<-order.rc(A)}) system.time(A.s1<-apply(A,1,sort)) system.time({A.c<-order.rc(A,row.column=2)}) system.time(A.s2<-apply(A,2,sort)) A<-matrix(rnorm(Nrandom*Nrandom),nrow=Nrandom*Nrandom/10,ncol=10) A[rbind(c(100,3),c(90,9),c(40,6))]<-NA system.time({A.r...
2019 Nov 02
1
[PATCH libnbd] lib: Use GCC hints to move debug and error handling code out of hot paths.
--- generator/generator | 6 +++--- lib/crypto.c | 2 +- lib/internal.h | 14 +++++++++++++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/generator/generator b/generator/generator index c2ff0db..eb3408d 100755 --- a/generator/generator +++ b/generator/generator @@ -4512,7 +4512,7 @@ let generate_lib_api_c () = let value = match errcode with | Some value -> value | None -> assert false in - pr " if (!%s_in_permitted_state (h)) {\n" name; + pr &q...
2019 Sep 12
5
[PATCH 0/3] PCIe link change improvements
...ouveau/nvkm/subdev/pci/g94.c | 1 + drm/nouveau/nvkm/subdev/pci/gf100.c | 1 + drm/nouveau/nvkm/subdev/pci/gf106.c | 1 + drm/nouveau/nvkm/subdev/pci/gk104.c | 11 +++++++++++ drm/nouveau/nvkm/subdev/pci/pcie.c | 14 ++++++++++++++ drm/nouveau/nvkm/subdev/pci/priv.h | 2 ++ 8 files changed, 40 insertions(+) -- 2.21.0
2016 Jun 02
2
[PATCH] Link count attribute extension
...eturn 0; } Index: sftp-common.h =================================================================== RCS file: /cvs/src/usr.bin/ssh/sftp-common.h,v retrieving revision 1.12 diff -u -r1.12 sftp-common.h --- sftp-common.h 14 Jan 2015 13:54:13 -0000 1.12 +++ sftp-common.h 2 Jun 2016 01:32:02 -0000 @@ -40,6 +40,8 @@ u_int32_t perm; u_int32_t atime; u_int32_t mtime; + u_int32_t has_nlink; + u_int64_t nlink; }; void attrib_clear(Attrib *); @@ -50,3 +52,5 @@ char *ls_file(const char *, const struct stat *, int, int); const char *fx2txt(int); + +#define SFTP_EXT_ATTR_LINK_COUNT "attr...
2020 Aug 17
2
qemu -display sdl,gl=on also eats CPU
...nched like this qemu-system-x86_64 -cdrom ~/Downloads/ISO/slax-English-US-7.0.8-x86_64.iso -m 1G -display sdl,gl=on -enable-kvm and left for few hours. top - 07:38:01 up 18:05, 2 users, load average: 2,00, 1,89, 1,83 Tasks: 224 total, 3 running, 221 sleeping, 0 stopped, 0 zombie %Cpu(s): 40,6 us, 6,1 sy, 0,3 ni, 49,2 id, 0,8 wa, 0,0 hi, 2,9 si, 0,0 st MiB Mem : 11875,3 total, 3535,7 free, 3339,3 used, 5000,3 buff/cache MiB Swap: 1145,0 total, 1131,2 free, 13,8 used. 4874,7 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 6...
2011 Jun 15
3
[PATCH] virtio-net: per cpu 64 bit stats
Use per-cpu variables to maintain 64 bit statistics. Compile tested only. Signed-off-by: Stephen Hemminger <shemminger at vyatta.com> --- a/drivers/net/virtio_net.c 2011-06-14 15:18:46.448596355 -0400 +++ b/drivers/net/virtio_net.c 2011-06-15 09:54:22.914426067 -0400 @@ -40,6 +40,15 @@ module_param(gso, bool, 0444); #define VIRTNET_SEND_COMMAND_SG_MAX 2 +struct virtnet_stats { + struct u64_stats_sync syncp; + u64 tx_bytes; + u64 tx_packets; + + u64 rx_bytes; + u64 rx_packets; +}; + str...
2011 Jun 15
3
[PATCH] virtio-net: per cpu 64 bit stats
Use per-cpu variables to maintain 64 bit statistics. Compile tested only. Signed-off-by: Stephen Hemminger <shemminger at vyatta.com> --- a/drivers/net/virtio_net.c 2011-06-14 15:18:46.448596355 -0400 +++ b/drivers/net/virtio_net.c 2011-06-15 09:54:22.914426067 -0400 @@ -40,6 +40,15 @@ module_param(gso, bool, 0444); #define VIRTNET_SEND_COMMAND_SG_MAX 2 +struct virtnet_stats { + struct u64_stats_sync syncp; + u64 tx_bytes; + u64 tx_packets; + + u64 rx_bytes; + u64 rx_packets; +}; + str...
2019 Sep 12
0
[PATCH 1/3] pci: force disable ASPM before changing the link speed
...pported = g92_pcie_version_supported, + .pcie.force_aspm_off = g84_pcie_force_aspm_off, }; int diff --git a/drm/nouveau/nvkm/subdev/pci/g94.c b/drm/nouveau/nvkm/subdev/pci/g94.c index 09adb37a5..aa152d798 100644 --- a/drm/nouveau/nvkm/subdev/pci/g94.c +++ b/drm/nouveau/nvkm/subdev/pci/g94.c @@ -40,6 +40,7 @@ g94_pci_func = { .pcie.set_version = g84_pcie_set_version, .pcie.version = g84_pcie_version, .pcie.version_supported = g92_pcie_version_supported, + .pcie.force_aspm_off = g84_pcie_force_aspm_off, }; int diff --git a/drm/nouveau/nvkm/subdev/pci/gf100.c b/drm/nouveau/nvkm/subdev...
2007 Jul 12
1
WWW::Mechanize::Link.inspect needs some TLC
...uot;>\n" (rdb:1) p page.links[0].pretty_inspect.size 138 (rdb:1) p page.inspect.size 1480219 (rdb:1) p page.pretty_inspect.size 2172 With this change: --- mechanize/inspect.rb~ 2007-07-12 10:55:20.375000000 -0700 +++ mechanize/inspect.rb 2007-07-12 11:42:58.203125000 -0700 @@ -40,6 +40,7 @@ } } end + alias :inspect :pretty_inspect end class Link @@ -49,6 +50,7 @@ q.breakable; q.pp href } end + alias :inspect :pretty_inspect end class Form lib $ I get these much better results:...
2011 Apr 07
2
[RFC][PATCH] virtio balloon: kill tell-host-first logic
...drivers/virtio/virtio_balloon.c~kill-tell-host-first-logic drivers/virtio/virtio_balloon.c --- linux-2.6.git/drivers/virtio/virtio_balloon.c~kill-tell-host-first-logic 2011-04-07 10:23:12.016343374 -0700 +++ linux-2.6.git-dave/drivers/virtio/virtio_balloon.c 2011-04-07 10:23:12.024343370 -0700 @@ -40,9 +40,6 @@ struct virtio_balloon /* Waiting for host to ack the pages we released. */ struct completion acked; - /* Do we have to tell Host *before* we reuse pages? */ - bool tell_host_first; - /* The pages we've told the Host we're not using. */ unsigned int num_pages; struct l...
2011 Apr 07
2
[RFC][PATCH] virtio balloon: kill tell-host-first logic
...drivers/virtio/virtio_balloon.c~kill-tell-host-first-logic drivers/virtio/virtio_balloon.c --- linux-2.6.git/drivers/virtio/virtio_balloon.c~kill-tell-host-first-logic 2011-04-07 10:23:12.016343374 -0700 +++ linux-2.6.git-dave/drivers/virtio/virtio_balloon.c 2011-04-07 10:23:12.024343370 -0700 @@ -40,9 +40,6 @@ struct virtio_balloon /* Waiting for host to ack the pages we released. */ struct completion acked; - /* Do we have to tell Host *before* we reuse pages? */ - bool tell_host_first; - /* The pages we've told the Host we're not using. */ unsigned int num_pages; struct l...
2020 Jul 07
2
[nbdkit PATCH] RFC tests: Avoid odd test behavior under NDEBUG
...<stdint.h> #include <string.h> +#undef NDEBUG /* We want the test to fail even if nbdkit disables assertions */ #include <assert.h> #include "byte-swapping.h" diff --git a/common/include/test-current-dir-name.c b/common/include/test-current-dir-name.c index bb2bfd12..40872f2b 100644 --- a/common/include/test-current-dir-name.c +++ b/common/include/test-current-dir-name.c @@ -37,6 +37,7 @@ #include <stdint.h> #include <string.h> #include <unistd.h> +#undef NDEBUG /* We want the test to fail even if nbdkit disables assertions */ #include <as...
2009 Jul 21
1
[PATCH node-image] Moved all temporary files into a single work directory to clean up.
...that one directory is deleted. Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- autotest.sh | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/autotest.sh b/autotest.sh index c9f8a2d..d658cf3 100755 --- a/autotest.sh +++ b/autotest.sh @@ -40,6 +40,7 @@ # an ISO file. ME=$(basename "$0") +WORKDIR=$(mktemp -d) warn() { printf '%s: %s\n' "$ME" "$*" >&2; } die() { warn "$*"; exit 1; } debug() { if $debugging; then log "[DEBUG] %s" "$*"; fi } @@ -140,7 +141,7...
2009 Aug 20
1
Delays in DRM nouveau_bios.c
Hi, questions will follow. --- diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index 99f7bd4..13b3fb1 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c @@ -40,8 +40,6 @@ #define BIOSLOG(sip, fmt, arg...) NV_DEBUG(sip->dev, fmt, ##arg) #define LOG_OLD_VALUE(x) //x -#define BIOS_USLEEP(n) mdelay((n)/1000) - #define ROM16(x) le16_to_cpu(*(uint16_t *)&(x)) #define ROM32(x) le32_to_cpu(*(uint32_t *)&(x)) @@ -50,6 +48,15 @@ struct init_exec...
2012 Feb 06
1
[PATCH] ia64: fix build (next instance)
...+ #endif /* _ASM_IA64_PROCESSOR_H */ --- a/xen/include/xen/list.h +++ b/xen/include/xen/list.h @@ -8,7 +8,6 @@ #define __XEN_LIST_H__ #include <xen/lib.h> -#include <xen/prefetch.h> #include <asm/system.h> /* These are non-NULL pointers that will result in page faults @@ -40,6 +39,9 @@ struct list_head { #define LIST_HEAD_READ_MOSTLY(name) \ struct list_head __read_mostly name = LIST_HEAD_INIT(name) +/* Do not move this ahead of the struct list_head definition! */ +#include <xen/prefetch.h> + static inline void INIT_LIST_HEAD(struct list_head *list) {...
2008 Feb 11
0
[LLVMdev] Some questions about live intervals
...t; - }; > -} > - > Index: include/llvm/CodeGen/LiveIntervalAnalysis.h > =================================================================== > --- include/llvm/CodeGen/LiveIntervalAnalysis.h (revision 46884) > +++ include/llvm/CodeGen/LiveIntervalAnalysis.h (working copy) > @@ -40,6 +40,20 @@ > class VirtRegMap; > typedef std::pair<unsigned, MachineBasicBlock*> IdxMBBPair; > > + inline bool operator<(unsigned V, const IdxMBBPair &IM) { > + return V < IM.first; > + } > + > + inline bool operator<(const IdxMBBPair &IM, u...